]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/fips140/rsa: add Miller-Rabin test
authorFilippo Valsorda <filippo@golang.org>
Wed, 27 Nov 2024 17:17:28 +0000 (18:17 +0100)
committerGopher Robot <gobot@golang.org>
Sat, 30 Nov 2024 01:46:21 +0000 (01:46 +0000)
commit22b5c145fb85771cdc5d16cd6aa8294bcf010d46
tree18ca7b8002894d3541aacb47c2b54f2a991c7797
parentcaee788a48f19814bd778c1bd2422cb6f60ad810
crypto/internal/fips140/rsa: add Miller-Rabin test

A following CL will move key generation to crypto/internal/fips140/rsa.

Updates #69799
For #69536

Change-Id: Icdf9b8424da20453939c6587af7dc922aad9e0ca
Reviewed-on: https://go-review.googlesource.com/c/go/+/632215
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
src/crypto/internal/fips140/bigmod/nat.go
src/crypto/internal/fips140/bigmod/nat_test.go
src/crypto/internal/fips140/rsa/keygen.go [new file with mode: 0644]
src/crypto/internal/fips140/rsa/keygen_test.go [new file with mode: 0644]
src/crypto/internal/fips140/rsa/testdata/miller_rabin_tests.txt [new file with mode: 0644]
src/crypto/rsa/rsa.go