Skip to content

Commit

Permalink
Merge pull request #1538 from usnistgov/livebe01-rsa-sigGen-saltLen-c…
Browse files Browse the repository at this point in the history
…orrections

corrections related to the make up of RSA sigGen test cases and saltLen
  • Loading branch information
livebe01 authored Sep 12, 2024
2 parents 69d4ae8 + bccd594 commit f250957
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/rsa/sections/06-siggen-test-vectors.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ The testGroups element at the top level in the test vector JSON object is an arr

The 'tgId', 'testType' and 'tests' objects *MUST* appear in every test group element communicated from the server to the client as a part of a prompt. Other properties are dependent on which 'testType' (see <<testtypes>>) the group is addressing.

NOTE: The 'saltLen' property will only be present in test groups for the 'sigType' "pss".

NOTE: The 'maskFunction' property will only be present for RSA / sigGen / FIPS186-5 inside of test groups for the 'sigType' "pss".

[[rsa_sigGen_tvjs]]
Expand All @@ -34,12 +36,11 @@ Each test group contains an array of one or more test cases. Each test case is a

| tcId | Test case idenfitier | integer
| message | The message to be signed | hex
| saltLen | The length of the salt in bytes | integer
| randomValue | The random value to be used as an input into the message randomization function as described in <<SP800-106>> | hex
| randomValueLen | The random value's bit length | integer
|===

NOTE: The 'saltLen' property will only be present in test groups for the 'sigType' "pss".


Here is an abbreviated yet fully constructed example of the prompt for RSA / sigGen / FIPS186-4. The only difference in the structure between RSA / sigGen / FIPS186-4 and RSA / sigGen / FIPS186-5 is the inclusion of the 'maskFunction' property in the 'testGroup' for RSA / sigGen / FIPS186-5.

Expand Down Expand Up @@ -83,11 +84,11 @@ Here is an abbreviated yet fully constructed example of the prompt for RSA / sig
"tgId": 5,
"sigType": "pss",
"hashAlg": "SHA2-256",
"saltLen": 20,
"modulo": 2048,
"tests": [
{
"tcId": 1169,
"saltLen": 20,
"tcId": 1169,
"message": "dfc22604b95d1..."
}
]
Expand Down

0 comments on commit f250957

Please sign in to comment.