Internet-Draft | ACVP ECDSA | 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 PUB 186 ECDSA 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 PUB 186 ECDSA implementations using ACVP.¶
No terms and definitions are listed in this document.¶
The following ECDSA algorithms MAY be advertised by the ACVP compliant cryptographic module. The list is in the form "algorithm / mode / revision".¶
The ACVP server performs a set of tests on the specified ECDSA 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 ECDSA capabilities. This section describes the design of the tests used to validate implementations of the ECDSA algorithms.¶
ECDSA / KeyGen / * "AFT" - Algorithm Functional Test. The IUT is REQUIRED for each test case provided, to generate a key pair based on an approved curve. This information is then communicated to the ACVP server and validated.¶
ECDSA / KeyVer / * "AFT" - Algorithm Functional Test. The ACVP server is REQUIRED to generate a series of keys based on the IUT provided NIST curve(s). The keys generated by the server MAY or MAY NOT be valid, the IUT is REQUIRED to determine if the keys provided in the test cases are valid or invalid keys as they relate to the curve.¶
ECDSA / SigGen / * "AFT" - Algorithm Functional Test. This testing mode expects the IUT to generate valid signatures based on the ACVP provided message. The signature is then validated with the ACVP server given the IUT's communicated curve, public key, and signature.¶
ECDSA / SigVer / * "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 curve, key, and message.¶
DetECDSA / SigGen / FIPS186-5 "AFT" - Algorithm Functional Test. This testing mode expects the IUT to generate valid signatures based on the ACVP provided message. The signature is then validated with the ACVP server given the IUT's communicated curve, public key, and signature. The random value used in the signature is generated according to the Deterministic ECDSA algorithm in [FIPS186-5].¶
The tests described in this document have the intention of ensuring an implementation is conformant to [FIPS186-4], [FIPS186-5], [SP800-89], and [SP800-106].¶
FIPS 186-4 - Section 3. General Discussion. Domain parameter generation, key generation, signature generation, and signature validation are all within scope of ACVP server testing.¶
FIPS 186-4 - Section 6. The Eliliptic Curve Digital Signature Algorithm (ECDSA). The ACVP server SHALL allow testing with the recommended NIST curves. The ACVP server SHALL support a variety of curves/hash function for creation and delivery to/from the IUT. Key pair generation/verification testing SHALL be provided by the ACVP server. Both Signature Generation and Validation testing mechanmisms SHALL be provided by the ACVP server.¶
SP800-106 - Sections 3. Randomized Hashing and 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.¶
FIPS 186-4 - Section 3. General Discussion. Assurances of private key secrecy and ownership SHALL NOT be within scope of ACVP testing.¶
FIPS 186-4 - Section 6. The Elliptic Curve Digital Signature Algorithm (ECDSA). 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 SHALL NOT provide testing for the validity of domain parameters as testing is (currently) limited to approved NIST curves. 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 ECDSA 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 ECDSA implementation relies on other cryptographic primitives. For example, ECDSA SigGen 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 | SHA, or DRBG |
valValue | algorithm validation number | string | Actual number or "same" |
prereqAlgVal | prerequisite algorithm validation | object with algorithm and valValue properties | See above |
Each ECDSA algorithm capability advertised is a self-contained JSON object using the following values.¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
algorithm | The ECDSA algorithm to be validated | string | See Section 5 |
mode | The ECDSA mdoe to be validated | string | See Section 5 |
revision | The algorithm testing revision to use | string | See Section 5 |
prereqVals | Prerequisite algorithm validations | array of prereqAlgVal objects | See Section 7.2 |
capabilities | The individual ECDSA Mode and Revision capabilities | array of capability objects | See Section 7.3.1, Section 7.3.2, Section 7.3.3, Section 7.3.4, Section 7.3.5 |
conformances | Used to denote the conformances that can apply to specific modes of ECDSA | array of strings | See Section 5.1 |
The ECDSA KeyGen 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 ECDSA KeyGen mode capability set is advertised as a self-contained JSON object.¶
The complete list of ECDSA / KeyGen / 1.0 capabilities MAY be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
curve | The curve names supported for the IUT in keyGen. | array | Any non-empty subset of {"P-224", "P-256", "P-384", "P-521", "B-233", "B-283", "B-409", "B-571", "K-233", "K-283", "K-409", "K-571"} |
secretGenerationMode | The method used to generate the randomness incoporated in the key. | array | Any non-empty subset of {"extra bits", "testing candidates"} |
Below is an example of the registration for ECDSA / KeyGen / 1.0¶
The complete list of ECDSA / KeyGen / FIPS186-5 capabilities MAY be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
curve | The curve names supported for the IUT in keyGen. | array | Any non-empty subset of {"P-224", "P-256", "P-384", "P-521"} |
secretGenerationMode | The method used to generate the randomness incoporated in the key. | array | Any non-empty subset of {"extra bits", "testing candidates"} |
Below is an example of the registration for ECDSA / KeyGen / FIPS186-5¶
The ECDSA KeyVer 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 ECDSA KeyVer mode capability set is advertised as a self-contained JSON object.¶
The complete list of ECDSA / KeyVer / 1.0 capabilities MAY be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
curve | The curve names supported for the IUT in keyVer. | array | Any non-empty subset of {"P-192", "P-224", "P-256", "P-384", "P-521", "B-163", "B-233", "B-283", "B-409", "B-571", "K-163", "K-233", "K-283", "K-409", "K-571"} |
Below is an example of the registration for ECDSA / KeyVer / 1.0¶
The complete list of ECDSA / KeyVer / FIPS186-5 capabilities MAY be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
curve | The curve names supported for the IUT in keyVer. | array | Any non-empty subset of {"P-224", "P-256", "P-384", "P-521"} |
Below is an example of the registration for ECDSA / KeyVer / FIPS186-5¶
The ECDSA SigGen 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 ECDSA SigGen mode capability set is advertised as a self-contained JSON object.¶
The complete list of ECDSA / SigGen / 1.0 capabilities MAY be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
curve | The curves supported with a particular set of hash algorithms. | array | Any non-empty subset of {"P-224", "P-256", "P-384", "P-521", "B-233", "B-283", "B-409", "B-571", "K-233", "K-283", "K-409", "K-571"} |
hashAlg | The hash functions supported when signing a message for a particular set of curves. | array | Any non-empty subset of {"SHA2-224", "SHA2-256", "SHA2-384", "SHA2-512", "SHA2-512/224", "SHA2-512/256", "SHA3-224", "SHA3-256", "SHA3-384", "SHA3-512"} |
Below is an example of the registration for ECDSA / SigGen / 1.0¶
The complete list of ECDSA / SigGen / FIPS186-5 capabilities MAY be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
curve | The curves supported with a particular set of hash algorithms. | array | Any non-empty subset of {"P-224", "P-256", "P-384", "P-521"} |
hashAlg | The hash functions supported when signing a message for a particular set of curves. | array | Any non-empty subset of {"SHA2-224", "SHA2-256", "SHA2-384", "SHA2-512", "SHA2-512/224", "SHA2-512/256", "SHA3-224", "SHA3-256", "SHA3-384", "SHA3-512", "SHAKE-128", "SHAKE-256"} |
Below is an example of the registration for ECDSA / SigGen / FIPS186-5¶
The ECDSA SigVer 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 ECDSA SigVer mode capability set is advertised as a self-contained JSON object.¶
The complete list of ECDSA / SigVer / 1.0 capabilities MAY be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
curve | The curves supported with a particular set of hash algorithms. | array | Any non-empty subset of {"P-192", "P-224", "P-256", "P-384", "P-521", "B-163", "B-233", "B-283", "B-409", "B-571", "K-163", "K-233", "K-283", "K-409", "K-571"} |
hashAlg | The hash functions supported when signing a message for a particular set of curves. | array | Any non-empty subset of {"SHA-1", "SHA2-224", "SHA2-256", "SHA2-384", "SHA2-512", "SHA2-512/224", "SHA2-512/256", "SHA3-224", "SHA3-256", "SHA3-384", "SHA3-512"} |
Below is an example of the registration for ECDSA / SigVer / 1.0¶
The complete list of ECDSA / SigVer / FIPS186-5 capabilities MAY be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
curve | The curves supported with a particular set of hash algorithms. | array | Any non-empty subset of {"P-224", "P-256", "P-384", "P-521"} |
hashAlg | The hash functions supported when signing a message for a particular set of curves. | array | Any non-empty subset of {"SHA2-224", "SHA2-256", "SHA2-384", "SHA2-512", "SHA2-512/224", "SHA2-512/256", "SHA3-224", "SHA3-256", "SHA3-384", "SHA3-512", "SHAKE-128", "SHAKE-256"} |
Below is an example of the registration for ECDSA / SigVer / FIPS186-5¶
The ECDSA SigGen 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 ECDSA SigGen mode capability set is advertised as a self-contained JSON object.¶
The complete list of detECDSA / SigGen / FIPS186-5 capabilities MAY be advertised by the ACVP compliant crypto module:¶
JSON Value | Description | JSON type | Valid Values |
---|---|---|---|
curve | The curves supported with a particular set of hash algorithms. | array | Any non-empty subset of {"P-224", "P-256", "P-384", "P-521"} |
hashAlg | The hash functions supported when signing a message for a particular set of curves. | array | Any non-empty subset of {"SHA2-224", "SHA2-256", "SHA2-384", "SHA2-512", "SHA2-512/224", "SHA2-512/256", "SHA3-224", "SHA3-256", "SHA3-384", "SHA3-512", "SHAKE-128", "SHAKE-256"} |
Below is an example of the registration for detECDSA / SigGen / FIPS186-5¶
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 PUB 186 ECDSA 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 ECDSA / SigGen / 1.0, ECDSA / KeyVer / FIPS186-5, etc. This section describes the JSON schema for a test vector set used with ECDSA 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 ECDSA / KeyGen / * is as follows:¶
JSON Value | Description | JSON type |
---|---|---|
testType | The test operation performed | string |
curve | The curve type used for the test group | string |
secretGenerationMode | The secret generation mode used for the 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 ECDSA 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 ECDSA / KeyGen. While the example will specify a revision, the format is identical for both revisions available.¶
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 ECDSA / KeyVer / * is as follows:¶
JSON Value | Description | JSON type |
---|---|---|
testType | The test operation performed | string |
curve | The curve type used for 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 ECDSA test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | Numeric identifier for the test case, unique across the entire vector set | integer |
qx | The public key curve point x | hex |
qy | The public key curve point y | hex |
The following is an example JSON object sent from the server to the client for ECDSA / KeyVer. While the example will specify a revision, the format is identical for both revisions available.¶
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 ECDSA / SigGen / * is as follows:¶
JSON Value | Description | JSON type |
---|---|---|
testType | The test operation performed | string |
curve | The curve type used for the test vectors | string |
hashAlg | SHA version used | 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.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 ECDSA 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 |
The following is an example JSON object sent from the server to the client for ECDSA / SigGen. While the example will specify a revision, the format is identical for both revisions available.¶
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 ECDSA / SigVer / * is as follows:¶
JSON Value | Description | JSON type |
---|---|---|
testType | The test operation performed | string |
curve | The curve type used for the test vectors | string |
hashAlg | SHA version used | 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 ECDSA 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 |
qx | The public key curve point x | hex |
qy | The public key curve point y | hex |
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 object sent from the server to the client for ECDSA / SigVer. While the example will specify a revision, the format is identical for both revisions available.¶
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 detECDSA / SigGen / * is as follows:¶
JSON Value | Description | JSON type |
---|---|---|
testType | The test operation performed | string |
curve | The curve type used for the test vectors | string |
hashAlg | SHA version used | 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.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 ECDSA 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 |
The following is an example JSON object sent from the server to the client for detECDSA / SigGen / FIPS186-5.¶
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 26 | 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.¶
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 27, Table 28, Table 30, Table 31 or Table 33 | array |
An example of this is the following¶
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 ECDSA / KeyGen / * test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | The test case identifier | integer |
d | The private key | hex |
qx | The public key curve point x | hex |
qy | The public key curve point y | hex |
The following is an example JSON test vector response object for ECDSA / KeyGen. While the example will not specify a revision, the format is identical for both revisions available.¶
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 ECDSA / KeyVer / * test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | The test case identifier | integer |
testPassed | Whether or not the key verified | boolean |
The following is an example JSON test vector response object for ECDSA / KeyVer. While the example will not specify a revision, the format is identical for both revisions available.¶
The test groups for ECDSA / SigGen / * contain public key properties. The groups can be described using the following table.¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
qx | The x component of the public key | hex |
qy | The y component of the public key | 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 ECDSA / SigGen / * 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 ECDSA / SigGen. While the example will not specify a revision, the format is identical for both revisions available.¶
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 ECDSA / SigVer / * test vector.¶
JSON Value | Description | JSON type |
---|---|---|
tcId | The test case identifier | integer |
testPassed | Whether or not the signature verified | boolean |
The following is an example JSON test vector response object for ECDSA / SigVer. While the example will not specify a revision, the format is identical for both revisions available.¶
The test groups for detECDSA / SigGen / FIPS186-5 contain public key properties. The groups can be described using the following table.¶
JSON Value | Description | JSON type |
---|---|---|
tgId | The test group identifier | integer |
qx | The x component of the public key | hex |
qy | The y component of the public key | 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 detECDSA / SigGen / FIPS186-5 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 detECDSA / SigGen / FIPS186-5.¶
There are no additional security considerations outside of those outlined in the ACVP document.¶
This document does not require any action by IANA.¶