040c39b
diff -up libgcrypt-1.6.2/tests/basic.c.fips-test libgcrypt-1.6.2/tests/basic.c
040c39b
--- libgcrypt-1.6.2/tests/basic.c.fips-test	2014-08-21 14:50:39.000000000 +0200
040c39b
+++ libgcrypt-1.6.2/tests/basic.c	2014-12-08 16:54:07.767619682 +0100
040c39b
@@ -582,6 +582,14 @@ check_ctr_cipher (void)
040c39b
       if (!tv[i].algo)
040c39b
         continue;
040c39b
 
040c39b
+      if (gcry_cipher_test_algo (tv[i].algo) && in_fips_mode)
040c39b
+        {
040c39b
+          if (verbose)
040c39b
+            fprintf (stderr, "  algorithm %d not available in fips mode\n",
040c39b
+                     tv[i].algo);
040c39b
+          continue;
040c39b
+        }
040c39b
+
040c39b
       err = gcry_cipher_open (&hde, tv[i].algo, GCRY_CIPHER_MODE_CTR, 0);
040c39b
       if (!err)
040c39b
 	err = gcry_cipher_open (&hdd, tv[i].algo, GCRY_CIPHER_MODE_CTR, 0);