Internet-Draft | ACVP DSA | August 2020 |
Fussell | Expires 11 February 2021 | [Page] |
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 11 February 2021.¶
Copyright (c) 2020 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
There are no acknowledgements.¶
This document defines the JSON schema for testing FIPS 186-4 DSA implementations with the ACVP specification.¶
The Automated Crypto Validation Protocol (ACVP) defines a mechanism to automatically verify the cryptographic implementation of a software or hardware crypto module. The ACVP specification defines how a crypto module communicates with an ACVP server, including crypto capabilities negotiation, session management, authentication, vector processing and more. The ACVP specification does not define algorithm specific JSON constructs for performing the crypto validation. A series of ACVP sub-specifications define the constructs for testing individual crypto algorithms. Each sub-specification addresses a specific class of crypto algorithms. This sub-specification defines the JSON constructs for testing FIPS 186-4 DSA implementations using ACVP.¶
No terms and definitions are listed in this document.¶
The following DSA algorithm / mode / revision combinations MAY be advertised by the ACVP compliant cryptographic module:¶
The ACVP server performs a set of tests on the specified DSA algorithm in order to assess the correctness and robustness of the implementation. A typical ACVP validation session SHALL require multiple tests to be performed for every supported permutation of DSA capabilities. This section describes the design of the tests used to validate implementations of the DSA algorithms.¶
DSA / keyGen / 1.0 "AFT" - Algorithm Functional Test. The IUT is REQUIRED for each test case provided, to generate a key pair based on a generated group level PQG. This information is then communicated to the ACVP server and validated.¶
DSA / pqgGen / 1.0 "GDT" - Generated Data Test. The IUT in this test mode is REQUIRED to generate PQ or G as a response to the ACVP provided test vector set.¶
DSA / pqgVer / 1.0 "GDT" - Generated Data Test. In this test mode, the ACVP server is REQUIRED to generate domain parameters for transmission to the IUT. The IUT is expected to evaluate the validity of the domain parameters.¶
DSA / sigGen / 1.0 "AFT" - Algorithm Functional Test. This testing mode expects the IUT to generate valid signatures based on the ACVP provided message. The IUT communicates the PQG, public key, and signature to the ACVP server, and the signature is then validated.¶
DSA / sigVer / 1.0 "AFT" - Algorithm Functional Test. The ACVP server generates a series of signatures to communicate to the IUT. The IUT is REQUIRED to determine the validity of the signature given the PQG, key, and message.¶
The tests described in this document have the intention of ensuring an implementation is conformant to [FIPS186-4] and [SP800-89].¶
FIPS186-4 Section 3 General Discussion. Domain parameter generation, key generation, signature generation, and signature validation are all within scope of ACVP server testing.¶
FIPS186-4 Section 4 The Digital Signature Algorithm (DSA). The ACVP server provides a means of the generation and validation of domain parameters. The ACVP server is SHALL support a variety of parameter sizes/hash function for creation and delivery to/from the IUT. The ACVP server SHALL allow for the testing of the validity of domain parameters. Key pair generation testing SHALL be provided by the ACVP server. Both Signature Generation and Validation testing mechanmisms SHALL be provided by the ACVP server.¶
SP800-106 Section 3 Randomized Hashing and Section 4 Digital Signatures Using Randomized Hashing. The IUT SHALL be provided or provide a random value that should be used to "randomize" a message prior to signing and/or verifying an original message.¶
FIPS186-4 Section 3 General Discussion. Assurances of private key secrecy and ownership SHALL NOT be within scope of ACVP testing.¶
FIPS186-4 Section 4 The Digital Signature Algorithm (DSA). The IUT's selection of parameter sizes and hash functions SHALL NOT be within scope of ACVP server testing. Though the ACVP server SHALL support a variety of parameter sizes/hash functions, the IUT's selection of these is out of scope of testing. The ACVP server MAY provide testing for the validity of domain parameters, but testing SHALL NOT provide assurances the IUT has validated a set of domain parameters prior to their use. Domain parameter and key pair management SHALL NOT be within scope of ACVP testing.¶
SP800-106 Section 3.3 The Random Value. DSA, ECDSA, and RSA have random values generated as per their signing process, this random value can be used as the input to the message randomization function, doing so however is out of scope of this testing.¶
ACVP requires crypto modules to register their capabilities. This allows the crypto module to advertise support for specific algorithms, notifying the ACVP server which algorithms need test vectors generated for the validation process. This section describes the constructs for advertising support of DSA algorithms to the ACVP server.¶
The algorithm capabilities MUST be advertised as JSON objects within the 'algorithms' value of the ACVP registration message. The 'algorithms' value is an array, where each array element is an individual JSON object defined in this section. The 'algorithms' value is part of the 'capability_exchange' element of the ACVP JSON registration message. See the ACVP specification [ACVP] for more details on the registration message.¶
Each algorithm implementation MAY rely on other cryptographic primitives. For example, RSA Signature algorithms depend on an underlying hash function. Each of these underlying algorithm primitives must be validated, either separately or as part of the same submission. ACVP provides a mechanism for specifying the required prerequisites:¶
Prerequisites, if applicable, MUST be submitted in the registration as the prereqVals
JSON property array inside each element of the algorithms
array. Each element in the prereqVals
array MUST contain the following properties¶
JSON Property | Description | JSON Type |
---|---|---|
algorithm | a prerequisite algorithm | string |
valValue | algorithm validation number | string |
A "valValue" of "same" SHALL be used to indicate that the prerequisite is being met by a different algorithm in the capability exchange in the same registration.¶
An example description of prerequisites within a single algorithm capability exchange looks like this¶
Each DSA implementation relies on other cryptographic primitives. For example, DSA uses an underlying SHA algorithm. Each of these underlying algorithm primitives must be validated, either separately or as part of the same submission. ACVP provides a mechanism for specifying the required prerequisites:¶
JSON Value | Description | JSON type | Valid Values | algorithm |
---|---|---|---|---|
a prerequisite algorithm | string | DRBG, SHA, SHA_OPT2 | valValue | algorithm validation number |
string | actual number or "same" | prereqAlgVal | prerequistie algorithm validation | object with algorithm and valValue properties |
see above | prereqVals | prerequistie algorithm validations | array of prereqAlgVal objects | see above |
Each algorithm capability advertised is a self-contained JSON object using the following values.¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
algorithm | The algorithm under test | string | "DSA" |
mode | The DSA mode to be validated | string | "pqgGen", "pqgVer", "keyGen", "sigGen", "sigVer" |
revision | The algorithm testing revision to use. | string | "1.0" |
prereqVals | prerequistie algorithm validations | array of prereqAlgVal objects | See Section 7.2 |
capabilities | array of JSON objects, each with fields pertaining to the global DSA mode indicated above and identified uniquely by the combination of the DSA "mode" and indicated properties | Array of JSON objects | See Section 7.4, Section 7.5, Section 7.5.1, Section 7.5.2 or Section 7.5.3 |
conformances | Used to denote the optional conformances that can apply to specific modes of DSA. | Array of strings | See Section 5.1 |
The DSA / pqgGen / 1.0 mode capabilities are advertised as JSON objects, which are elements of the 'capabilities' array in the ACVP registration message. See the ACVP specification for details on the registration message.¶
Each DSA / pqgGen / 1.0 mode capability set is advertised as a self-contained JSON object.¶
The complete list of DSA PQ and G generation capabilities may be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
l | The length in bits of the field and the length in bits of prime p. | value | 2048, or 3072 |
n | The length in bits of q which is a prime factor of (p-1). | value | 224, or 256 when L is 2048. Otherwise 256. |
pqGen | The methods supported to generate p and q. | array | Any non-empty subset of {"probable", "provable"}. |
gGen | The methods supported to generate g. | array | Any non-empty subset of {"unverifiable", "canonical"}. |
hashAlg | The hash functions supported when generating p, q and g. | array | Any non-empty subset of {"SHA2-224", "SHA2-256", "SHA2-384", "SHA2-512", "SHA2-512/224", "SHA2-512/256"}. Note that the digest size of the hash function MUST be equal to or greater than N. |
An example of the DSA / pqgGen / 1.0 registration is the following¶
The DSA / pqgVer / 1.0 mode capabilities are advertised as JSON objects, which are elements of the 'capabilities' array in the ACVP registration message. See the ACVP specification for details on the registration message.¶
Each DSA / pqgVer / 1.0 mode capability set is advertised as a self-contained JSON object.¶
The complete list of DSA P, Q and G verification capabilities may be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
l | The length in bits of the field and the length in bits of prime p. | value | 1024, 2048, or 3072 |
n | The length in bits of q which is a prime factor of (p-1). | value | 160 when L is 1024. 224, or 256 when L is 2048. Otherwise 256. |
pqGen | The methods supported to generate p and q. | array | Any non-empty subset of {"probable", "provable"}. |
gGen | The methods supported to generate g. | array | Any non-empty subset of {"unverifiable", "canonical"}. |
hashAlg | The hash functions supported when generating p, q and g. | array | Any non-empty subset of {"SHA-1", "SHA2-224", "SHA2-256", "SHA2-384", "SHA2-512", "SHA2-512/224", "SHA2-512/256"}. Note that the digest size of the hash function MUST be equal to or greater than N. |
An example of the DSA / pqgVer / 1.0 registration is the following¶
The DSA / keyGen / 1.0 mode capabilities are advertised as JSON objects, which are elements of the 'capabilities' array in the ACVP registration message. See the ACVP specification for details on the registration message.¶
Each DSA / keyGen / 1.0 mode capability set is advertised as a self-contained JSON object.¶
The complete list of DSA key generation capabilities may be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
l | The length in bits of the field and the length in bits of prime p. | value | 2048, or 3072 |
n | The length in bits of q which is a prime factor of (p-1). | value | 224, or 256 when L is 2048. Otherwise 256. |
An example of this is the following¶
The DSA / sigGen / 1.0 mode capabilities are advertised as JSON objects, which are elements of the 'capabilities' array in the ACVP registration message. See the ACVP specification for details on the registration message.¶
Each DSA / sigGen / 1.0 mode capability set is advertised as a self-contained JSON object.¶
The complete list of DSA signature generation capabilities may be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
l | The length in bits of the field and the length in bits of prime p. | value | 2048, or 3072 |
n | The length in bits of q which is a prime factor of (p-1). | value | 224, or 256 when L is 2048. Otherwise 256. |
hashAlg | The hash functions supported when signing a message. | array | Any non-empty subset of {"SHA2-224","SHA2-256", "SHA2-384", "SHA2-512", "SHA2-512/224", "SHA2-512/256"}. |
An example of this is the following¶
The DSA / sigVer / 1.0 mode capabilities are advertised as JSON objects, which are elements of the 'capabilities' array in the ACVP registration message. See the ACVP specification for details on the registration message.¶
Each DSA / sigVer / 1.0 mode capability set is advertised as a self-contained JSON object.¶
The complete list of DSA signature verification capabilities may be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
l | The length in bits of the field and the length in bits of prime p. | value | 1024, 2048, or 3072 |
n | The length in bits of q which is a prime factor of (p-1). | value | 160 when L is 1024. 224, or 256 when L is2048. Otherwise 256. |
hashAlg | The hash functions supported when verifying a message. | array | Any non-empty subset of {"SHA-1","SHA2-224", "SHA2-256", "SHA2-384", "SHA2-512", "SHA2-512/224", "SHA2-512/256"}. |
An example of this is the following¶
The ACVP server provides test vectors to the ACVP client, which are then processed and returned to the ACVP server for validation. A typical ACVP validation test session would require multiple test vector sets to be downloaded and processed by the ACVP client. Each test vector set represents an individual algorithm defined during the capability exchange. This section describes the JSON schema for a test vector set used with FIPS 186-4 DSA algorithms.¶
The test vector set JSON schema is a multi-level hierarchy that contains meta data for the entire vector set as well as individual test vectors to be processed by the ACVP client. The following table describes the JSON elements at the top level of the hierarchy.¶
JSON Values | Description | JSON Type |
---|---|---|
acvVersion | Protocol version identifier | string |
vsId | Unique numeric vector set identifier | integer |
algorithm | Algorithm defined in the capability exchange | string |
mode | Mode defined in the capability exchange | string |
revision | Protocol test revision selected | string |
testGroups | Array of test groups containing test data, see Section 9 | array |
An example of this would look like this¶
The ACVP server provides test vectors to the ACVP client, which are then processed and returned to the ACVP server for validation. A typical ACVP validation session would require multiple test vector sets to be downloaded and processed by the ACVP client. Each test vector set represents an individual crypto algorithm, such as DSA / SigGen / 1.0 etc. This section describes the JSON schema for a test vector set used with DSA crypto algorithms.¶
The test vector set JSON schema is a multi-level hierarchy that contains meta data for the entire vector set as well as individual test vectors to be processed by the ACVP client. The following table describes the JSON elements at the top level of the hierarchy.¶
JSON Value | Description | JSON type |
---|---|---|
acvVersion | Protocol version identifier | string |
vsId | Unique numeric identifier for the vector set | integer |
algorithm | The algorithm used for the test vectors | string |
mode | The mode used for the test vectors | string |
revision | The algorithm testing revision to use | string |
testGroups | Array of test group JSON objects, which are defined in Section 9.1.1, Section 9.2.1, Section 9.3.1, Section 9.4.1, or Section 9.5.1 depending on the algorithm | array |
The testGroups element at the top level in the test vector JSON object is an array of test groups. Test vectors are grouped into similar test cases to reduce the amount of data transmitted in the vector set. For instance, all test vectors that use the same key size would be grouped together. The Test Group JSON object contains meta data that applies to all test vectors within the group. The following table describes the secure hash JSON elements of the Test Group JSON object.¶
The test group for DSA / pqgGen / * is as follows:¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
testType | The test operation performed | string |
l | Length in bits of prime modulus p | integer |
n | Length in bits of prime divisor q | integer |
pqMode | The specific pq generation mode used in the test group | string |
gMode | The specific g generation mode used in the test group | string |
hashAlg | The hash algorithm used in the test group | string |
tests | Array of individual test vector JSON objects, which are defined in Section 9.1.2 | array |
Each test group contains an array of one or more test cases. Each test case is a JSON object that represents a single test vector to be processed by the ACVP client. The following table describes the JSON elements for each DSA / pqgGen / 1.0 test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | Numeric identifier for the test case, unique across the entire vector set | integer |
p | The prime modulus | hex |
q | The prime divisor of p - 1 | hex |
domainSeed | The seed used to generate p and q in the probable method | hex |
index | The index value provided to the g generator in the canonical method | hex |
The following is an example JSON object sent from the server to the client for DSA / pqgGen / 1.0.¶
The testGroups element at the top level in the test vector JSON object is an array of test groups. Test vectors are grouped into similar test cases to reduce the amount of data transmitted in the vector set. For instance, all test vectors that use the same key size would be grouped together. The Test Group JSON object contains meta data that applies to all test vectors within the group. The following table describes the secure hash JSON elements of the Test Group JSON object.¶
The test group for DSA / pqgVer / * is as follows:¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
testType | The test operation performed | string |
l | Length in bits of prime modulus p | integer |
n | Length in bits of prime divisor q | integer |
pqMode | The specific pq generation mode used in the test group | string |
gMode | The specific g generation mode used in the test group | string |
hashAlg | The hash algorithm used in the test group | string |
tests | Array of individual test vector JSON objects, which are defined in Section 9.2.2 | array |
Each test group contains an array of one or more test cases. Each test case is a JSON object that represents a single test vector to be processed by the ACVP client. The following table describes the JSON elements for each DSA / pqgVer / 1.0 test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | Numeric identifier for the test case, unique across the entire vector set | integer |
p | The prime modulus | hex |
q | The prime divisor of p - 1 | hex |
domainSeed | The seed used to generate p and q in the probable method | hex |
counter | The counter used to generate p and q in the probable method | integer |
pSeed | The seed used to generate p in the provable method | hex |
qSeed | The seed used to generate q in the provable method | hex |
pCounter | The counter used to generate p in the provable method | integer |
qCounter | The counter used to generate q in the provable method | integer |
g | The generator | hex |
h | The index value provided to the g generator in the unverifiable method | hex |
index | The index value provided to the g generator in the canonical method | hex |
The following is an example JSON object sent from the server to the client for DSA / pqgVer / 1.0.¶
The testGroups element at the top level in the test vector JSON object is an array of test groups. Test vectors are grouped into similar test cases to reduce the amount of data transmitted in the vector set. For instance, all test vectors that use the same key size would be grouped together. The Test Group JSON object contains meta data that applies to all test vectors within the group. The following table describes the secure hash JSON elements of the Test Group JSON object.¶
The test group for DSA / keyGen / * is as follows:¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
testType | The test operation performed | string |
l | Length in bits of prime modulus p | integer |
n | Length in bits of prime divisor q | integer |
tests | Array of individual test vector JSON objects, which are defined in Section 9.3.2 | array |
Each test group contains an array of one or more test cases. Each test case is a JSON object that represents a single test vector to be processed by the ACVP client. The following table describes the JSON elements for each DSA / keyGen / 1.0 test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | Numeric identifier for the test case, unique across the entire vector set | integer |
The following is an example JSON object sent from the server to the client for DSA / keyGen / 1.0.¶
The testGroups element at the top level in the test vector JSON object is an array of test groups. Test vectors are grouped into similar test cases to reduce the amount of data transmitted in the vector set. For instance, all test vectors that use the same key size would be grouped together. The Test Group JSON object contains meta data that applies to all test vectors within the group. The following table describes the secure hash JSON elements of the Test Group JSON object.¶
The test group for DSA / sigGen / * is as follows:¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
testType | The test operation performed | string |
l | Length in bits of prime modulus p | integer |
n | Length in bits of prime divisor q | integer |
hashAlg | The hash algorithm used in the test group | string |
conformance | Signifies all test cases within the group should utilize random message hashing as described in <SP800-106>>. | string |
tests | Array of individual test vector JSON objects, which are defined in Section 9.4.2 | array |
Each test group contains an array of one or more test cases. Each test case is a JSON object that represents a single test vector to be processed by the ACVP client. The following table describes the JSON elements for each DSA / sigGen / 1.0 test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | Numeric identifier for the test case, unique across the entire vector set | integer |
message | The message used to generate signature or verify signature | hex |
The following is an example JSON object sent from the server to the client for DSA / sigGen / 1.0.¶
The testGroups element at the top level in the test vector JSON object is an array of test groups. Test vectors are grouped into similar test cases to reduce the amount of data transmitted in the vector set. For instance, all test vectors that use the same key size would be grouped together. The Test Group JSON object contains meta data that applies to all test vectors within the group. The following table describes the secure hash JSON elements of the Test Group JSON object.¶
The test group for DSA / sigVer / * is as follows:¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
testType | The test operation performed | string |
l | Length in bits of prime modulus p | integer |
n | Length in bits of prime divisor q | integer |
p | Domain parameter P | hex |
q | Domain parameter Q | hex |
g | Domain parameter G | hex |
hashAlg | The hash algorithm used in the test group | string |
conformance | Signifies all test cases within the group should utilize random message hashing as described in <SP800-106>>. | string |
tests | Array of individual test vector JSON objects, which are defined in Section 9.5.2 | array |
Each test group contains an array of one or more test cases. Each test case is a JSON object that represents a single test vector to be processed by the ACVP client. The following table describes the JSON elements for each DSA / sigVer / 1.0 test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | Numeric identifier for the test case, unique across the entire vector set | integer |
message | The message used to generate signature or verify signature | hex |
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 |
r | The signature component R | hex |
s | The signature component S | hex |
y | The public key component Y | hex |
The following is an example JSON object sent from the server to the client for DSA / sigVer / 1.0.¶
After the ACVP client downloads and processes a vector set, it must send the response vectors back to the ACVP server. The following table describes the JSON object that represents a vector set response.¶
JSON Property | Description | JSON Type |
---|---|---|
acvVersion | The ACVP version used | string |
vsId | The vector set identifier | integer |
testGroups | The test group objects in the response, see Table 22 | array |
An example of this is the following¶
The 'testGroups' section is used to organize the ACVP client response in a similar manner to how it distributes vectors. Some algorithm / mode / revision combinations might require that additional test group properties are provided in the response.¶
JSON Property | Description | JSON Type |
---|---|---|
tgId | The test group identifier | integer |
tests | The test case objects in the response, depending on the algorithm see Table 24, Table 26, Table 28, Table 30 or Table 32 | array |
An example of this is the following¶
The test groups for DSA / pqgGen / 1.0 contain public key properties. The groups can be described using the following table.¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
tests | The individual test cases for the group | array |
Each test group contains an array of one or more test cases. Each test case is a JSON object that represents a single test vector to be processed by the ACVP client. The following table describes the JSON elements for each DSA / pqgGen / 1.0 test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | The test case identifier | integer |
p | The prime modulus | hex |
q | The prime divisor of p - 1 | hex |
g | The generator | hex |
domainSeed | The seed used to generate p and q in the probable method | hex |
counter | The counter used to generate p and q in the probable method | integer |
pSeed | The seed used to generate p in the provable method | hex |
qSeed | The seed used to generate q in the provable method | hex |
pCounter | The counter used to generate p in the provable method | integer |
qCounter | The counter used to generate q in the provable method | integer |
The following is an example JSON test vector response object for DSA / pqgGen / 1.0.¶
The test groups for DSA / pqgVer / 1.0 contain public key properties. The groups can be described using the following table.¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
tests | The individual test cases for the group | array |
Each test group contains an array of one or more test cases. Each test case is a JSON object that represents a single test vector to be processed by the ACVP client. The following table describes the JSON elements for each DSA / pqgVer / 1.0 test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | The test case identifier | integer |
testPassed | Whether or not the pq pair or g verified | boolean |
The following is an example JSON test vector response object for DSA / pqgVer / 1.0.¶
The test groups for DSA / keyGen / 1.0 contain public key properties. The groups can be described using the following table.¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
p | The prime modulus | hex |
q | The prime divisor of p - 1 | hex |
g | The generator | hex |
tests | The individual test cases for the group | array |
Each test group contains an array of one or more test cases. Each test case is a JSON object that represents a single test vector to be processed by the ACVP client. The following table describes the JSON elements for each DSA / keyGen / 1.0 test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | The test case identifier | integer |
x | The private key component X | hex |
y | The public key component Y | hex |
The following is an example JSON test vector response object for DSA / keyGen / 1.0.¶
The test groups for DSA / sigGen / 1.0 contain public key properties. The groups can be described using the following table.¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
p | The prime modulus | hex |
q | The prime divisor of p - 1 | hex |
g | The generator | hex |
y | The public key component Y | hex |
tests | The individual test cases for the group | array |
Each test group contains an array of one or more test cases. Each test case is a JSON object that represents a single test vector to be processed by the ACVP client. The following table describes the JSON elements for each DSA / sigGen / 1.0 test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | The test case identifier | integer |
r | The signature component R | hex |
s | The signature component S | hex |
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 |
The following is an example JSON test vector response object for DSA / sigGen / 1.0.¶
The test groups for DSA / sigVer / 1.0 contain public key properties. The groups can be described using the following table.¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
tests | The individual test cases for the group | array |
Each test group contains an array of one or more test cases. Each test case is a JSON object that represents a single test vector to be processed by the ACVP client. The following table describes the JSON elements for each DSA / sigVer / 1.0 test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | The test case identifier | integer |
testPassed | Whether or not the pq pair or g verified | boolean |
The following is an example JSON test vector response object for DSA / sigVer / 1.0.¶
There are no additional security considerations outside of those outlined in the ACVP document.¶
This document does not require any action by IANA.¶