Skip to content

Commit

Permalink
Merge pull request usnistgov#1511 from livebe01/removes-duplicate-lms…
Browse files Browse the repository at this point in the history
…-ml-test-vectors-section

removes duplicate Test Vectors sections from LMS, ML-DSA, and ML-KEM specs
  • Loading branch information
livebe01 authored Apr 30, 2024
2 parents 888e524 + a6a74e0 commit 0b55c9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 52 deletions.
17 changes: 1 addition & 16 deletions src/lms/sections/06-test-vectors.adoc
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@

[[tgjs]]
== Test Vectors
==

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 LMS / sigGen / 1.0, etc. This section describes the JSON schema for a test vector set used with LMS 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.

[[lms_vs_top_table]]
.LMS Vector Set JSON Object
|===
| 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 <<LMS_keyGen_vs_tr_table>>, <<LMS_sigGen_vs_tr_table>>, or <<LMS_sigVer_vs_tr_table>> depending on the algorithm | array
|===
19 changes: 1 addition & 18 deletions src/ml-dsa/sections/06-test-vectors.adoc
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@

[[tgjs]]
== Test Vectors

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 ML-DSA / sigGen / FIPS204, etc. This section describes the JSON schema for a test vector set used with ML-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.

[[ml-dsa_vs_top_table]]
.ML-Dsa Vector Set JSON Object
|===
| 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 <<ML-DSA_keyGen_vs_tr_table>>, <<ML-DSA_sigGen_vs_tr_table>>, or <<ML-DSA_sigVer_vs_tr_table>> depending on the algorithm | array
|===
==
19 changes: 1 addition & 18 deletions src/ml-kem/sections/06-test-vectors.adoc
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@

[[tgjs]]
== Test Vectors

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 ML-KEM / keyGen / FIPS203, etc. This section describes the JSON schema for a test vector set used with ML-KEM 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.

[[ml-dsa_vs_top_table]]
.ML-Dsa Vector Set JSON Object
|===
| 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 <<ML-KEM_keyGen_vs_tr_table>> or <<ML-KEM_encapDecap_vs_tr_table>> depending on the algorithm | array
|===
==

0 comments on commit 0b55c9a

Please sign in to comment.