go/src/crypto/rsa
Russ Cox e845f572ec [dev.boringcrypto] crypto/ecdsa, crypto/rsa: use boring.Cache
In the original BoringCrypto port, ecdsa and rsa's public and private
keys added a 'boring unsafe.Pointer' field to cache the BoringCrypto
form of the key. This led to problems with code that “knew” the layout
of those structs and in particular that they had no unexported fields.

In response, as an awful kludge, I changed the compiler to pretend
that field did not exist when laying out reflect data. Because we want
to merge BoringCrypto in the main tree, we need a different solution.
Using boring.Cache is that solution.

For #51940.

Change-Id: Ideb2b40b599a1dc223082eda35a5ea9abcc01e30
Reviewed-on: https://go-review.googlesource.com/c/go/+/395883
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
2022-04-29 14:23:32 +00:00
..
testdata
boring.go [dev.boringcrypto] crypto/ecdsa, crypto/rsa: use boring.Cache 2022-04-29 14:23:32 +00:00
boring_test.go [dev.boringcrypto] crypto/ecdsa, crypto/rsa: use boring.Cache 2022-04-29 14:23:32 +00:00
equal_test.go
example_test.go
notboring.go [dev.boringcrypto] all: add boringcrypto build tags 2022-04-29 14:23:22 +00:00
pkcs1v15.go [dev.boringcrypto] all: merge master into dev.boringcrypto 2022-04-20 16:57:46 +02:00
pkcs1v15_test.go [dev.boringcrypto] all: merge master into dev.boringcrypto 2022-04-20 16:57:46 +02:00
pss.go [dev.boringcrypto] all: merge commit 9d0819b27c (CL 314609) into dev.boringcrypto 2021-05-13 12:59:22 -04:00
pss_test.go [dev.boringcrypto] all: merge commit 9d0819b27c (CL 314609) into dev.boringcrypto 2021-05-13 12:59:22 -04:00
rsa.go [dev.boringcrypto] crypto/ecdsa, crypto/rsa: use boring.Cache 2022-04-29 14:23:32 +00:00
rsa_test.go