From bff0db4324906fb97610d62320d26e528e8f7ac8 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 23 Aug 2022 11:27:21 +0800 Subject: [PATCH] Updated is my code constant time? (markdown) --- is-my-code-constant-time?.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/is-my-code-constant-time?.md b/is-my-code-constant-time?.md index c6c6ead..d44c21e 100644 --- a/is-my-code-constant-time?.md +++ b/is-my-code-constant-time?.md @@ -66,7 +66,7 @@ type Curve interface { ECDH(local *PrivateKey, remote *PublicKey) ([]byte, error) // 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(rand io.Reader) (*PrivateKey, error)