]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/fips140test: add RSA ACVP tests
authorDaniel McCarney <daniel@binaryparadox.net>
Fri, 10 Jan 2025 16:10:12 +0000 (11:10 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 10 Feb 2025 21:55:31 +0000 (13:55 -0800)
commitea54d8a0efc22c092c1f714cb3c6f12f429c1459
tree85795bf67e968d12edadae97643f6d1145221cc3
parent0c94c5fcae909de059ff5c9273e2839e0d5742bf
crypto/internal/fips140test: add RSA ACVP tests

Adds ACVP test coverage for the RSA algorithm based on the NIST spec:
  https://pages.nist.gov/ACVP/draft-celi-acvp-rsa.html

Includes coverage for keyGen, sigGen and sigVer across a variety of
modulus sizes. For sigGen and sigVer both PKCS1v1.5 and PSS are
supported with a variety of SHA2 digests.

The static test data from go-acvp only includes sigVer vectors/expected.
The keyGen and sigGen test types aren't amenable to fixed data testing.

Updates #69642

Change-Id: Ia61a69115f2d2a984b95435a37d4c9c6db90a89a
Reviewed-on: https://go-review.googlesource.com/c/go/+/642135
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
src/crypto/internal/fips140test/acvp_capabilities.json
src/crypto/internal/fips140test/acvp_test.config.json
src/crypto/internal/fips140test/acvp_test.go