]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/fips/rsa: support all SHA hashes in PKCS#1 v1.5
authorFilippo Valsorda <filippo@golang.org>
Wed, 20 Nov 2024 14:02:40 +0000 (15:02 +0100)
committerGopher Robot <gobot@golang.org>
Wed, 20 Nov 2024 17:52:09 +0000 (17:52 +0000)
commit297081eb021d3c66854f21a93462553e518988cc
treed1672ae60414d8452dd80c0dd42a6edfb9e4c722
parentc483fdbfcfba9c86dbe93a096f120cc15f783d38
crypto/internal/fips/rsa: support all SHA hashes in PKCS#1 v1.5

The byte sequences match those in
https://github.com/randombit/botan/blob/e5ec40828/src/lib/pk_pad/hash_id/hash_id.cpp

For #69536
Fixes #43923

Change-Id: I8b4daea71c2f696ad67ddc13affefd1563c51266
Reviewed-on: https://go-review.googlesource.com/c/go/+/630095
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/crypto/internal/fips/rsa/pkcs1v15.go
src/crypto/internal/fips/rsa/pkcs1v15_test.go [new file with mode: 0644]