]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
log if a crypto algorithm does not support a given key size
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 25 Dec 2010 14:49:29 +0000 (15:49 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 25 Dec 2010 14:49:29 +0000 (15:49 +0100)
src/libstrongswan/crypto/crypto_tester.c

index 46f0a0fac0ad5ee7e325cffa27417e33153679af..36c832013b0f55e0f7983386649deb4654aee55e 100644 (file)
@@ -188,7 +188,9 @@ METHOD(crypto_tester_t, test_crypter, bool,
                }
                crypter = create(alg, vector->key_size);
                if (!crypter)
-               {       /* key size not supported... */
+               {       DBG1(DBG_LIB, "%N[%s]: %u bit key size not supported",
+                                encryption_algorithm_names, alg, plugin_name,
+                                BITS_PER_BYTE * vector->key_size);
                        continue;
                }