vendor: pull in missing go-echd library

This commit is contained in:
Péter Szilágyi
2018-04-18 12:51:30 +03:00
committed by Guillaume Ballet
parent 78375608a4
commit 475e8719ba
5 changed files with 206 additions and 0 deletions

14
vendor/github.com/wsddn/go-ecdh/ecdh.go generated vendored Normal file
View File

@ -0,0 +1,14 @@
package ecdh
import (
"crypto"
"io"
)
// The main interface for ECDH key exchange.
type ECDH interface {
GenerateKey(io.Reader) (crypto.PrivateKey, crypto.PublicKey, error)
Marshal(crypto.PublicKey) []byte
Unmarshal([]byte) (crypto.PublicKey, bool)
GenerateSharedSecret(crypto.PrivateKey, crypto.PublicKey) ([]byte, error)
}