mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-15 21:46:18 +08:00
Updated is my code constant time? (markdown)
parent
e03d875830
commit
bff0db4324
@ -66,7 +66,7 @@ type Curve interface {
|
|||||||
ECDH(local *PrivateKey, remote *PublicKey) ([]byte, error)
|
ECDH(local *PrivateKey, remote *PublicKey) ([]byte, error)
|
||||||
|
|
||||||
// SM2ECDH performs a SM2 exchange and returns the shared secret.
|
// SM2ECDH performs a SM2 exchange and returns the shared secret.
|
||||||
SM2ECDH(local *PrivateKey, remote *PublicKey, localUID, remoteUID []byte, keyLen int) ([]byte, error)
|
SM2ECDH(enc, local *PrivateKey, remote *PublicKey, localUID, remoteUID []byte, keyLen int) ([]byte, error)
|
||||||
|
|
||||||
// GenerateKey generates a new PrivateKey from rand.
|
// GenerateKey generates a new PrivateKey from rand.
|
||||||
GenerateKey(rand io.Reader) (*PrivateKey, error)
|
GenerateKey(rand io.Reader) (*PrivateKey, error)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user