diff --git a/is-my-code-constant-time?.md b/is-my-code-constant-time?.md index 4a1dc85..f1c564c 100644 --- a/is-my-code-constant-time?.md +++ b/is-my-code-constant-time?.md @@ -65,7 +65,11 @@ type Curve interface { // the result is the all-zero value, ECDH returns an error. ECDH(local *PrivateKey, remote *PublicKey) ([]byte, error) - SM2MQV(sLocal, eLocal *PrivateKey, sRemote, eRemote *PublicKey) (*PublicKey, error) + // SM2MQV performs a SM2 specific style ECMQV exchange and return the shared secret. + SM2MQV(sLocal, eLocal *PrivateKey, sRemote, eRemote *PublicKey) (*PublicKey, error) + + // SM2SharedKey performs SM2 key derivation to generate shared keying data, the uv was generated by SM2MQV. + SM2SharedKey(isResponder bool, kenLen int, uv, sPub, sRemote *PublicKey, uid []byte, remoteUID []byte) ([]byte, error) // GenerateKey generates a new PrivateKey from rand. GenerateKey(rand io.Reader) (*PrivateKey, error)