From ea28663f8719e8fd0dcb10cf97ffbdcf4bd9674f Mon Sep 17 00:00:00 2001 From: Richard Pickering Date: Mon, 15 Mar 2021 17:56:26 +0000 Subject: [PATCH] crypto/rsa: EncryptOAEP doc comment correction Corrected the documentation comment on the EncryptOAEP function from 'if a given public key is used to decrypt two types of messages' to 'if a given public key is used to encrypt two types of messages'. --- src/crypto/rsa/rsa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/rsa/rsa.go b/src/crypto/rsa/rsa.go index 178ade666a1..6fd59b39409 100644 --- a/src/crypto/rsa/rsa.go +++ b/src/crypto/rsa/rsa.go @@ -401,7 +401,7 @@ func encrypt(c *big.Int, pub *PublicKey, m *big.Int) *big.Int { // // The label parameter may contain arbitrary data that will not be encrypted, // but which gives important context to the message. For example, if a given -// public key is used to decrypt two types of messages then distinct label +// public key is used to encrypt two types of messages then distinct label // values could be used to ensure that a ciphertext for one purpose cannot be // used for another by an attacker. If not required it can be empty. //