]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests/pkcs11-provider/pkcs11-provider-hmac: uncomment SHA-3 tests 2094/head
authorAlexander Sosedkin <asosedkin@redhat.com>
Thu, 16 Apr 2026 10:59:22 +0000 (12:59 +0200)
committerAlexander Sosedkin <asosedkin@redhat.com>
Thu, 16 Apr 2026 11:00:20 +0000 (13:00 +0200)
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
tests/pkcs11-provider/pkcs11-provider-hmac.c

index 1d02b7653924491ca3df0e26ea86789f26a6a9b7..e20aee6f7f502f41beadf1e63749686101c987c1 100644 (file)
@@ -378,28 +378,23 @@ static int test_hashes(void)
                         "\x1d\x2d\x17\xd4\xf8\x6d\xb3\x1c\x2a\x85"
                         "\x1d\xc8\x0e\x66\x81\xd7\x47\x33\xc5\x5d"
                         "\xcd\x03\xdd\x96\xf6\x06\x2c\xdd\xa1\x2a"
-                        "\x29\x1a\xe6\xce") < 0;
-       /*
-              test_hash(GNUTLS_DIG_SHA3_224, "sha3-224",
-                        "abcdefgh", 8,
+                        "\x29\x1a\xe6\xce") < 0 ||
+              test_hash(GNUTLS_DIG_SHA3_224, "sha3-224", "abcdefgh", 8,
                         "\x48\xbf\x2e\x86\x40\xcf\xfe\x77\xb6\x7c"
                         "\x61\x82\xa6\xa4\x7f\x8b\x5a\xf7\x3f\x60"
                         "\xbd\x20\x4e\xf3\x48\x37\x1d\x03") < 0 ||
-              test_hash(GNUTLS_DIG_SHA3_256, "sha3-256",
-                        "abcdefgh", 8,
+              test_hash(GNUTLS_DIG_SHA3_256, "sha3-256", "abcdefgh", 8,
                         "\x3e\x20\x20\x72\x5a\x38\xa4\x8e\xb3\xbb"
                         "\xf7\x57\x67\xf0\x3a\x22\xc6\xb3\xf4\x1f"
                         "\x45\x9c\x83\x13\x09\xb0\x64\x33\xec\x64"
                         "\x97\x79") < 0 ||
-              test_hash(GNUTLS_DIG_SHA3_384, "sha3-384",
-                        "abcdefgh", 8,
+              test_hash(GNUTLS_DIG_SHA3_384, "sha3-384", "abcdefgh", 8,
                         "\xf4\xd9\xfc\x5e\x9f\x44\xeb\x87\xfe\x96"
                         "\x8f\xc8\xe4\xe4\x69\x1e\xb1\xda\xb6\xd8"
                         "\x21\xfb\x77\x55\x0b\x52\x7f\x71\xcc\xfb"
                         "\x1b\xa0\x43\x85\x1b\xb0\x54\xf2\x81\x36"
                         "\x4c\x44\xd8\x54\x19\x04\xdb\x5a") < 0 ||
-              test_hash(GNUTLS_DIG_SHA3_512, "sha3-512",
-                        "abcdefgh", 8,
+              test_hash(GNUTLS_DIG_SHA3_512, "sha3-512", "abcdefgh", 8,
                         "\xc9\xf2\x5e\xee\x75\xab\x4c\xf9\xa8\xcf"
                         "\xd4\x4f\x49\x92\xb2\x82\x07\x9b\x64\xd9"
                         "\x46\x47\xed\xbd\x88\xe8\x18\xe4\x4f\x70"
@@ -407,7 +402,6 @@ static int test_hashes(void)
                         "\xa2\x02\x05\xb3\x67\x1c\xe1\x99\x1c\xe9"
                         "\xa6\xd2\xdf\x8d\xba\xd6\xe0\xbb\x3e\x50"
                         "\x49\x3d\x7f\xa7") < 0;
-       */
 }
 
 /*