]> Cypherpunks repositories - gostls13.git/commit
crypto/rsa: check hash message length first in SignPKCS1v15
authorRuss Cox <rsc@golang.org>
Sat, 30 Nov 2024 01:30:48 +0000 (20:30 -0500)
committerRuss Cox <rsc@golang.org>
Sat, 30 Nov 2024 03:42:43 +0000 (03:42 +0000)
commitc5adb8216968be46bd11f7b7360a7c8bde1258d9
tree00d448c1bd24cd2fbcd215da2e5a0acd823fc505
parentdd7ab5ec5d6329dd5da052d2438274572ad7113b
crypto/rsa: check hash message length first in SignPKCS1v15

This restores the error checking behavior from Go 1.23.
In particular, the boringcrypto code path now contains this
check again.

Change-Id: Ie38c68c27bc3a95c6a0b5a78fc4196694527cd6b
Reviewed-on: https://go-review.googlesource.com/c/go/+/632495
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
src/crypto/rsa/fips.go
src/crypto/rsa/rsa_test.go