vendor: pull in missing go-echd library
This commit is contained in:
committed by
Guillaume Ballet
parent
78375608a4
commit
475e8719ba
14
vendor/github.com/wsddn/go-ecdh/ecdh.go
generated
vendored
Normal file
14
vendor/github.com/wsddn/go-ecdh/ecdh.go
generated
vendored
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user