Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:

test/validation/api/crypto/test_vectors.h
line 33
@@ -361,6 +361,39 @@ static crypto_test_reference_t aes_gcm_reference[] = {
        }
 };
 
+static crypto_test_reference_t aes_gmac_reference[] = {
+       {
+               .auth_key_length = AES128_GCM_KEY_LEN,
+               .auth_key = { 0x4c, 0x80, 0xcd, 0xef, 0xbb, 0x5d, 0x10, 0xda,
+                             0x90, 0x6a, 0xc7, 0x3c, 0x36, 0x13, 0xa6, 0x34},
+               .iv_length = AES_GCM_IV_LEN,
+               .iv = { 0x22, 0x43, 0x3c, 0x64, 0x00, 0x00, 0x00, 0x00,
+                       0x00, 0x00, 0x00, 0x00 },
+               .length = 68,
+               .plaintext = { 0x00, 0x00, 0x43, 0x21, 0x00, 0x00, 0x00, 0x07,
+                              0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+                              0x45, 0x00, 0x00, 0x30, 0xda, 0x3a, 0x00, 0x00,
+                              0x80, 0x01, 0xdf, 0x3b, 0xc0, 0xa8, 0x00, 0x05,
+                              0xc0, 0xa8, 0x00, 0x01, 0x08, 0x00, 0xc6, 0xcd,
+                              0x02, 0x00, 0x07, 0x00, 0x61, 0x62, 0x63, 0x64,
+                              0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c,
+                              0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, 0x74,
+                              0x01, 0x02, 0x02, 0x01 },
+               .ciphertext = { 0x00, 0x00, 0x43, 0x21, 0x00, 0x00, 0x00, 0x07,
+                               0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+                               0x45, 0x00, 0x00, 0x30, 0xda, 0x3a, 0x00, 0x00,
+                               0x80, 0x01, 0xdf, 0x3b, 0xc0, 0xa8, 0x00, 0x05,
+                               0xc0, 0xa8, 0x00, 0x01, 0x08, 0x00, 0xc6, 0xcd,
+                               0x02, 0x00, 0x07, 0x00, 0x61, 0x62, 0x63, 0x64,
+                               0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c,
+                               0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x73, 0x74,
+                               0x01, 0x02, 0x02, 0x01 },
+               .digest_length = AES_GCM_DIGEST_LEN,
+               .digest = { 0xf2, 0xa9, 0xa8, 0x36, 0xe1, 0x55, 0x10,
+                           0x6a, 0xa8, 0xdc, 0xd6, 0x18, 0xe4, 0x09, 0x9a, 
0xaa }


Comment:
Checkpatch flags this line as > 80 chars. Easy to reflow, e.g., move the `0x6a` 
to the earlier line.

https://github.com/Linaro/odp/pull/288#discussion_r149839109
updated_at 2017-11-09 00:37:04

Reply via email to