aboutsummaryrefslogtreecommitdiff
path: root/api/next
diff options
context:
space:
mode:
authorAleks Rudzitis <arudzitis@stripe.com>2022-07-21 11:19:42 -0700
committerGopher Robot <gobot@golang.org>2022-11-09 23:51:34 +0000
commite48fc2665e2e95eddea612fa315403d50c7beb2b (patch)
tree4906a2b1fe4f7602955e272f23753fde4f02affd /api/next
parent89332e037aeaf1223de4c24805719f733e4c0977 (diff)
downloadgo-e48fc2665e2e95eddea612fa315403d50c7beb2b.tar.xz
crypto: allow hash.Hash for OAEP and MGF1 to be specified independently
crypto/rsa assumes RSA OAEP uses the same hash to be used for both the label and the mask generation function. However, implementations in other languages, such as Java and Python, allow these parameters to be specified independently. This change allows the MGF hash to be specified independently for decrypt operations in order to allow decrypting ciphertexts generated in other environments. Fixes: #19974 Change-Id: If453d628f0da354ceb3b52863f30087471670f7b Reviewed-on: https://go-review.googlesource.com/c/go/+/418874 Auto-Submit: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org> Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Andrew Bonventre <andybons@golang.org> Run-TryBot: Andrew Bonventre <andybons@golang.org>
Diffstat (limited to 'api/next')
-rw-r--r--api/next/19974.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/next/19974.txt b/api/next/19974.txt
new file mode 100644
index 0000000000..22893facba
--- /dev/null
+++ b/api/next/19974.txt
@@ -0,0 +1 @@
+pkg crypto/rsa, type OAEPOptions struct, MGFHash crypto.Hash #19974