]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: hardcode RSA PSS parameters rather than generating them
authorRoland Shoemaker <rolandshoemaker@gmail.com>
Mon, 28 Sep 2020 15:59:13 +0000 (08:59 -0700)
committerRoland Shoemaker <roland@golang.org>
Mon, 28 Sep 2020 18:46:39 +0000 (18:46 +0000)
commitf33263d11aa0f5e2668bfc6a0805e4edee17b03c
tree81c13c9693a2b9365c146607c1e6db9f0c4755bc
parenta424f6e45e29960c933a7ccc1cd8fc9bb2766f15
crypto/x509: hardcode RSA PSS parameters rather than generating them

Rather than generating the three possible RSA PSS parameters each time
they are needed just hardcode them and pick the required one based on
the hash function.

Fixes #41407

Change-Id: Id43bdaf40b3ca82c4c04c6588e3b643f63107657
Reviewed-on: https://go-review.googlesource.com/c/go/+/258037
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Roland Shoemaker <roland@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go