Skip to content

Commit

Permalink
add support for RSA KeyGen AFT tests for FIPS186-5 (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
billbo-yang authored Oct 10, 2023
1 parent bb1aaba commit 1ba686a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions util/fipstools/acvp/acvptool/subprocess/rsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,9 @@ func processKeyGen(vectorSet []byte, m Transactable) (any, error) {
var ret []rsaKeyGenTestGroupResponse

for _, group := range parsed.Groups {
// GDT means "Generated data test", i.e. "please generate an RSA key".
const expectedType = "GDT"
if group.Type != expectedType {
return nil, fmt.Errorf("RSA KeyGen test group has type %q, but only generation tests (%q) are supported", group.Type, expectedType)
// We support both GDT and AFT tests, which are formatted the same and expect the same output.
if !(group.Type == "GDT" || group.Type == "AFT") {
return nil, fmt.Errorf("RSA KeyGen test group has type %q, but only GDT and AFT tests are supported", group.Type)
}

response := rsaKeyGenTestGroupResponse{
Expand Down

0 comments on commit 1ba686a

Please sign in to comment.