mirror of https://github.com/golang/go.git
Turns out that recomputing them (and qInv in particular) in constant
time is expensive, so let's not throw them away when they are available.
They are much faster to check, so we now do that on precompute.
Also, thanks to the opaque crypto/internal/fips140/rsa.PrivateKey type,
we now have some assurance that the values we use are always ones we
checked.
Recovers most of the performance loss since CL 630516 in the happy path.
Also, since now we always use the CRT, if necessary by running a
throwaway Precompute, which is now cheap if PrecomputedValues is filled
out, we effectively fixed the JSON round-trip slowdown (#59695).
goos: darwin
goarch: arm64
pkg: crypto/rsa
cpu: Apple M2
│
|
||
|---|---|---|
| .. | ||
| 6-stdlib | ||
| 1-intro.md | ||
| 2-language.md | ||
| 3-tools.md | ||
| 4-runtime.md | ||
| 5-toolchain.md | ||
| 7-ports.md | ||
| 9-todo.md | ||