Add missing commas to test vectors
authorjoshua <joshua@openbsd.org>
Wed, 19 Jul 2023 15:11:42 +0000 (15:11 +0000)
committerjoshua <joshua@openbsd.org>
Wed, 19 Jul 2023 15:11:42 +0000 (15:11 +0000)
ok tb@

regress/lib/libcrypto/sha/sha_test.c

index 3137c23..82a0c4c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: sha_test.c,v 1.5 2023/07/19 15:06:57 joshua Exp $ */
+/*     $OpenBSD: sha_test.c,v 1.6 2023/07/19 15:11:42 joshua Exp $ */
 /*
  * Copyright (c) 2022, 2023 Joshua Sing <joshua@hypera.dev>
  *
@@ -38,7 +38,7 @@ static const struct sha_test sha_tests[] = {
                        0xa9, 0x99, 0x3e, 0x36, 0x47, 0x06, 0x81, 0x6a,
                        0xba, 0x3e, 0x25, 0x71, 0x78, 0x50, 0xc2, 0x6c,
                        0x9c, 0xd0, 0xd8, 0x9d,
-               }
+               },
        },
        {
                .algorithm = NID_sha1,
@@ -48,7 +48,7 @@ static const struct sha_test sha_tests[] = {
                        0xda, 0x39, 0xa3, 0xee, 0x5e, 0x6b, 0x4b, 0x0d,
                        0x32, 0x55, 0xbf, 0xef, 0x95, 0x60, 0x18, 0x90,
                        0xaf, 0xd8, 0x07, 0x09,
-               }
+               },
        },
        {
                .algorithm = NID_sha1,
@@ -60,7 +60,7 @@ static const struct sha_test sha_tests[] = {
                        0x84, 0x98, 0x3e, 0x44, 0x1c, 0x3b, 0xd2, 0x6e,
                        0xba, 0xae, 0x4a, 0xa1, 0xf9, 0x51, 0x29, 0xe5,
                        0xe5, 0x46, 0x70, 0xf1,
-               }
+               },
        },
        {
                .algorithm = NID_sha1,
@@ -73,7 +73,7 @@ static const struct sha_test sha_tests[] = {
                        0xa4, 0x9b, 0x24, 0x46, 0xa0, 0x2c, 0x64, 0x5b,
                        0xf4, 0x19, 0xf9, 0x95, 0xb6, 0x70, 0x91, 0x25,
                        0x3a, 0x04, 0xa2, 0x59,
-               }
+               },
        },
 
        /* SHA-224 */
@@ -86,7 +86,7 @@ static const struct sha_test sha_tests[] = {
                        0x86, 0x42, 0xa4, 0x77, 0xbd, 0xa2, 0x55, 0xb3,
                        0x2a, 0xad, 0xbc, 0xe4, 0xbd, 0xa0, 0xb3, 0xf7,
                        0xe3, 0x6c, 0x9d, 0xa7,
-               }
+               },
        },
        {
                .algorithm = NID_sha224,
@@ -97,7 +97,7 @@ static const struct sha_test sha_tests[] = {
                        0x47, 0x61, 0x02, 0xbb, 0x28, 0x82, 0x34, 0xc4,
                        0x15, 0xa2, 0xb0, 0x1f, 0x82, 0x8e, 0xa6, 0x2a,
                        0xc5, 0xb3, 0xe4, 0x2f,
-               }
+               },
        },
        {
                .algorithm = NID_sha224,
@@ -110,7 +110,7 @@ static const struct sha_test sha_tests[] = {
                        0x5d, 0xba, 0x5d, 0xa1, 0xfd, 0x89, 0x01, 0x50,
                        0xb0, 0xc6, 0x45, 0x5c, 0xb4, 0xf5, 0x8b, 0x19,
                        0x52, 0x52, 0x25, 0x25,
-               }
+               },
        },
        {
                .algorithm = NID_sha224,
@@ -124,7 +124,7 @@ static const struct sha_test sha_tests[] = {
                        0x7a, 0x04, 0xa9, 0x6d, 0xef, 0x6d, 0x99, 0xa9,
                        0xe0, 0xe0, 0xe2, 0xab, 0x14, 0xe6, 0xb8, 0xdf,
                        0x26, 0x5f, 0xc0, 0xb3,
-               }
+               },
        },
 
        /* SHA-256 */
@@ -137,7 +137,7 @@ static const struct sha_test sha_tests[] = {
                        0x41, 0x41, 0x40, 0xde, 0x5d, 0xae, 0x22, 0x23,
                        0xb0, 0x03, 0x61, 0xa3, 0x96, 0x17, 0x7a, 0x9c,
                        0xb4, 0x10, 0xff, 0x61, 0xf2, 0x00, 0x15, 0xad,
-               }
+               },
        },
        {
                .algorithm = NID_sha256,
@@ -148,7 +148,7 @@ static const struct sha_test sha_tests[] = {
                        0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24,
                        0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c,
                        0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55,
-               }
+               },
        },
        {
                .algorithm = NID_sha256,
@@ -161,7 +161,7 @@ static const struct sha_test sha_tests[] = {
                        0xe5, 0xc0, 0x26, 0x93, 0x0c, 0x3e, 0x60, 0x39,
                        0xa3, 0x3c, 0xe4, 0x59, 0x64, 0xff, 0x21, 0x67,
                        0xf6, 0xec, 0xed, 0xd4, 0x19, 0xdb, 0x06, 0xc1,
-               }
+               },
        },
        {
                .algorithm = NID_sha256,
@@ -175,7 +175,7 @@ static const struct sha_test sha_tests[] = {
                        0x03, 0x6c, 0xe5, 0x9e, 0x7b, 0x04, 0x92, 0x37,
                        0x0b, 0x24, 0x9b, 0x11, 0xe8, 0xf0, 0x7a, 0x51,
                        0xaf, 0xac, 0x45, 0x03, 0x7a, 0xfe, 0xe9, 0xd1,
-               }
+               },
        },
 
        /* SHA-384 */
@@ -190,7 +190,7 @@ static const struct sha_test sha_tests[] = {
                        0x1a, 0x8b, 0x60, 0x5a, 0x43, 0xff, 0x5b, 0xed,
                        0x80, 0x86, 0x07, 0x2b, 0xa1, 0xe7, 0xcc, 0x23,
                        0x58, 0xba, 0xec, 0xa1, 0x34, 0xc8, 0x25, 0xa7,
-               }
+               },
        },
        {
                .algorithm = NID_sha384,
@@ -203,7 +203,7 @@ static const struct sha_test sha_tests[] = {
                        0x4c, 0x0c, 0xc7, 0xbf, 0x63, 0xf6, 0xe1, 0xda,
                        0x27, 0x4e, 0xde, 0xbf, 0xe7, 0x6f, 0x65, 0xfb,
                        0xd5, 0x1a, 0xd2, 0xf1, 0x48, 0x98, 0xb9, 0x5b,
-               }
+               },
        },
        {
                .algorithm = NID_sha384,
@@ -218,7 +218,7 @@ static const struct sha_test sha_tests[] = {
                        0xfe, 0x8f, 0x45, 0x0d, 0xe5, 0xf3, 0x6b, 0xc6,
                        0xb0, 0x45, 0x5a, 0x85, 0x20, 0xbc, 0x4e, 0x6f,
                        0x5f, 0xe9, 0x5b, 0x1f, 0xe3, 0xc8, 0x45, 0x2b,
-               }
+               },
        },
        {
                .algorithm = NID_sha384,
@@ -234,7 +234,7 @@ static const struct sha_test sha_tests[] = {
                        0x2f, 0xa0, 0x80, 0x86, 0xe3, 0xb0, 0xf7, 0x12,
                        0xfc, 0xc7, 0xc7, 0x1a, 0x55, 0x7e, 0x2d, 0xb9,
                        0x66, 0xc3, 0xe9, 0xfa, 0x91, 0x74, 0x60, 0x39,
-               }
+               },
        },
 
        /* SHA-512 */
@@ -251,7 +251,7 @@ static const struct sha_test sha_tests[] = {
                        0x36, 0xba, 0x3c, 0x23, 0xa3, 0xfe, 0xeb, 0xbd,
                        0x45, 0x4d, 0x44, 0x23, 0x64, 0x3c, 0xe8, 0x0e,
                        0x2a, 0x9a, 0xc9, 0x4f, 0xa5, 0x4c, 0xa4, 0x9f,
-               }
+               },
        },
        {
                .algorithm = NID_sha512,
@@ -266,7 +266,7 @@ static const struct sha_test sha_tests[] = {
                        0xff, 0x83, 0x18, 0xd2, 0x87, 0x7e, 0xec, 0x2f,
                        0x63, 0xb9, 0x31, 0xbd, 0x47, 0x41, 0x7a, 0x81,
                        0xa5, 0x38, 0x32, 0x7a, 0xf9, 0x27, 0xda, 0x3e,
-               }
+               },
        },
        {
                .algorithm = NID_sha512,
@@ -283,7 +283,7 @@ static const struct sha_test sha_tests[] = {
                        0xaa, 0x1d, 0x3b, 0xea, 0x57, 0x78, 0x9c, 0xa0,
                        0x31, 0xad, 0x85, 0xc7, 0xa7, 0x1d, 0xd7, 0x03,
                        0x54, 0xec, 0x63, 0x12, 0x38, 0xca, 0x34, 0x45,
-               }
+               },
        },
        {
                .algorithm = NID_sha512,
@@ -301,7 +301,7 @@ static const struct sha_test sha_tests[] = {
                        0x33, 0x1b, 0x99, 0xde, 0xc4, 0xb5, 0x43, 0x3a,
                        0xc7, 0xd3, 0x29, 0xee, 0xb6, 0xdd, 0x26, 0x54,
                        0x5e, 0x96, 0xe5, 0x5b, 0x87, 0x4b, 0xe9, 0x09,
-               }
+               },
        },
 
        /* SHA3-224 */
@@ -550,7 +550,7 @@ static const struct sha_repetition_test sha_repetition_tests[] = {
                        0x34, 0xaa, 0x97, 0x3c, 0xd4, 0xc4, 0xda, 0xa4,
                        0xf6, 0x1e, 0xeb, 0x2b, 0xdb, 0xad, 0x27, 0x31,
                        0x65, 0x34, 0x01, 0x6f,
-               }
+               },
        },
 
        /* SHA-224 */
@@ -563,7 +563,7 @@ static const struct sha_repetition_test sha_repetition_tests[] = {
                        0xbb, 0xb4, 0xc1, 0xea, 0x97, 0x61, 0x8a, 0x4b,
                        0xf0, 0x3f, 0x42, 0x58, 0x19, 0x48, 0xb2, 0xee,
                        0x4e, 0xe7, 0xad, 0x67,
-               }
+               },
        },
 
        /* SHA-256 */
@@ -576,7 +576,7 @@ static const struct sha_repetition_test sha_repetition_tests[] = {
                        0x81, 0xa1, 0xc7, 0xe2, 0x84, 0xd7, 0x3e, 0x67,
                        0xf1, 0x80, 0x9a, 0x48, 0xa4, 0x97, 0x20, 0x0e,
                        0x04, 0x6d, 0x39, 0xcc, 0xc7, 0x11, 0x2c, 0xd0,
-               }
+               },
        },
 
        /* SHA-384 */
@@ -591,7 +591,7 @@ static const struct sha_repetition_test sha_repetition_tests[] = {
                        0x79, 0x72, 0xce, 0xc5, 0x70, 0x4c, 0x2a, 0x5b,
                        0x07, 0xb8, 0xb3, 0xdc, 0x38, 0xec, 0xc4, 0xeb,
                        0xae, 0x97, 0xdd, 0xd8, 0x7f, 0x3d, 0x89, 0x85,
-               }
+               },
        },
 
        /* SHA-512 */
@@ -608,7 +608,7 @@ static const struct sha_repetition_test sha_repetition_tests[] = {
                        0x4c, 0xb0, 0x43, 0x2c, 0xe5, 0x77, 0xc3, 0x1b,
                        0xeb, 0x00, 0x9c, 0x5c, 0x2c, 0x49, 0xaa, 0x2e,
                        0x4e, 0xad, 0xb2, 0x17, 0xad, 0x8c, 0xc0, 0x9b,
-               }
+               },
        },
 
        /* SHA3-224 */