Updated is my code constant time? (markdown)

Sun Yimin 2022-08-23 11:34:53 +08:00
parent bff0db4324
commit fe1a637987

@ -65,9 +65,6 @@ type Curve interface {
// the result is the all-zero value, ECDH returns an error. // the result is the all-zero value, ECDH returns an error.
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(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)