diff --git a/src/mac/sections/05-gmac-capabilities.adoc b/src/mac/sections/05-gmac-capabilities.adoc index 8c031a949..f2f49f5fd 100644 --- a/src/mac/sections/05-gmac-capabilities.adoc +++ b/src/mac/sections/05-gmac-capabilities.adoc @@ -45,6 +45,7 @@ The following is an example JSON object advertising support for AES-GMAC. 120 ], "ivGen": "external", + "ivGenMode": "8.2.2", "aadLen": [ 8, 120 diff --git a/src/mac/sections/06-cmac-aes-test-vectors.adoc b/src/mac/sections/06-cmac-aes-test-vectors.adoc index 0f6e61542..e3fafd124 100644 --- a/src/mac/sections/06-cmac-aes-test-vectors.adoc +++ b/src/mac/sections/06-cmac-aes-test-vectors.adoc @@ -32,7 +32,7 @@ Each test group contains an array of one or more test cases. Each test case is a | tcId | Numeric identifier for the test case, unique across the entire vector set | integer | key | Encryption key to use | hex -| msg | Value of the message | hex +| message | Value of the message | hex | mac | MAC value, for CMAC verify | hex |=== diff --git a/src/mac/sections/06-cmac-tdes-test-vectors.adoc b/src/mac/sections/06-cmac-tdes-test-vectors.adoc index c6d28211e..1a365a45e 100644 --- a/src/mac/sections/06-cmac-tdes-test-vectors.adoc +++ b/src/mac/sections/06-cmac-tdes-test-vectors.adoc @@ -14,9 +14,9 @@ The testGroups element at the top level in the test vector JSON object is an arr | tgId | Numeric identifier for the test group, unique across the entire vector set | integer | testType | Test category type | string | direction | The direction of the tests - gen or ver | string -| keyLen | Length of key in bits to use | integer | msgLen | Length of message in bits | integer | macLen | Length of MAC in bits to generate/verify | integer +| keyingOption | The Keying Option used in TDES. Keying option 1 (1) is 3 distinct keys (K1, K2, K3). Keying Option 2 (2) is 2 distinct only suitable for decrypt (K1, K2, K1). Keying option 3 (No longer valid for testing, save TDES KATs) is a single key, now deprecated (K1, K1, K1). | array | 1, 2 | tests | Array of individual test vector JSON objects, which are defined in <> | array |=== @@ -31,9 +31,9 @@ Each test group contains an array of one or more test cases. Each test case is a | JSON Value | Description | JSON type | tcId | Numeric identifier for the test case, unique across the entire vector set | integer -| key1, key2, key3 | Encryption keys to use for TDES | hex -| msg | Value of the message | hex +| message | Value of the message | hex | mac | MAC value, for CMAC verify | hex +| key1, key2, key3 | Encryption keys to use for TDES | hex |=== [[cmac_tdes_test_vector_json]] @@ -51,7 +51,6 @@ The following is an example JSON test vector object for CMAC-TDES, truncated for "tgId": 4, "testType": "AFT", "direction": "gen", - "keyLen": 192, "msgLen": 752, "macLen": 32, "keyingOption": 1, @@ -82,7 +81,6 @@ The following is an example JSON test vector object for CMAC-TDES, truncated for "tgId": 10, "testType": "AFT", "direction": "ver", - "keyLen": 192, "msgLen": 0, "macLen": 32, "keyingOption": 1, diff --git a/src/mac/sections/06-gmac-test-vectors.adoc b/src/mac/sections/06-gmac-test-vectors.adoc index 99892739a..c80d769c5 100644 --- a/src/mac/sections/06-gmac-test-vectors.adoc +++ b/src/mac/sections/06-gmac-test-vectors.adoc @@ -23,6 +23,8 @@ The testGroups element at the top level in the test vector JSON object is an arr | tests | Array of individual test vector JSON objects, which are defined in <> | array |=== + | NOTE: PayloadLength is not supported for GMAC which defaults to 0, and is printed to the Test Group for clarity. + [[gmac_tcjs]] ==== AES-GMAC Test Case JSON Schema @@ -60,6 +62,7 @@ The following is an example JSON test vector object for AES-GMAC, truncated for "keyLen": 128, "ivLen": 96, "ivGen": "external", + ivGenMode": "8.2.2", "aadLen": 0, "tagLen": 32, "tests": [{ @@ -76,6 +79,7 @@ The following is an example JSON test vector object for AES-GMAC, truncated for "keyLen": 128, "ivLen": 96, "ivGen": "external", + ivGenMode": "8.2.2", "aadLen": 0, "tagLen": 32, "tests": [{