Blame SOURCES/libgcrypt-1.5.3-fips-test.patch
|
|
f268f1 |
diff -up libgcrypt-1.5.3/tests/basic.c.fips-test libgcrypt-1.5.3/tests/basic.c
|
|
|
f268f1 |
--- libgcrypt-1.5.3/tests/basic.c.fips-test 2014-09-26 17:36:41.620556071 +0200
|
|
|
f268f1 |
+++ libgcrypt-1.5.3/tests/basic.c 2014-09-26 17:36:43.317594382 +0200
|
|
|
f268f1 |
@@ -563,6 +563,14 @@ check_ctr_cipher (void)
|
|
|
f268f1 |
if (!tv[i].algo)
|
|
|
f268f1 |
continue;
|
|
|
f268f1 |
|
|
|
f268f1 |
+ if (gcry_cipher_test_algo (tv[i].algo) && in_fips_mode)
|
|
|
f268f1 |
+ {
|
|
|
f268f1 |
+ if (verbose)
|
|
|
f268f1 |
+ fprintf (stderr, " algorithm %d not available in fips mode\n",
|
|
|
f268f1 |
+ tv[i].algo);
|
|
|
f268f1 |
+ continue;
|
|
|
f268f1 |
+ }
|
|
|
f268f1 |
+
|
|
|
f268f1 |
err = gcry_cipher_open (&hde, tv[i].algo, GCRY_CIPHER_MODE_CTR, 0);
|
|
|
f268f1 |
if (!err)
|
|
|
f268f1 |
err = gcry_cipher_open (&hdd, tv[i].algo, GCRY_CIPHER_MODE_CTR, 0);
|