mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/rsa: correct EncryptOAEP doc comment
Fixes #44777
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'.
Change-Id: I02aff90d0414960eae72352c0e4d8ba2e8f8eca6
GitHub-Last-Rev: ea28663f87
GitHub-Pull-Request: golang/go#45032
Reviewed-on: https://go-review.googlesource.com/c/go/+/301714
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
732ea4c2dc
commit
9de49ae01a
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
// 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
|
// 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
|
// 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.
|
// used for another by an attacker. If not required it can be empty.
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue