Updated is my code constant time? (markdown)

Sun Yimin 2022-08-23 11:27:21 +08:00
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)