aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/crypto_tester.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2010-12-25 15:53:15 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2010-12-25 15:53:15 +0100
commitc6a043fad08086ec5b2ff98b335053809e29bc05 (patch)
treeaf971d79fbb46ce9cabf3999f4bb5eba93c5b058 /src/libstrongswan/crypto/crypto_tester.c
parent90288c76f8bf9f2bcc72a009ee97a63414580466 (diff)
downloadstrongswan-c6a043fad08086ec5b2ff98b335053809e29bc05.tar.bz2
strongswan-c6a043fad08086ec5b2ff98b335053809e29bc05.tar.xz
log if an AEAD algorithm does not support a given key size
Diffstat (limited to 'src/libstrongswan/crypto/crypto_tester.c')
-rw-r--r--src/libstrongswan/crypto/crypto_tester.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libstrongswan/crypto/crypto_tester.c b/src/libstrongswan/crypto/crypto_tester.c
index 36c832013..9c852c054 100644
--- a/src/libstrongswan/crypto/crypto_tester.c
+++ b/src/libstrongswan/crypto/crypto_tester.c
@@ -188,7 +188,8 @@ METHOD(crypto_tester_t, test_crypter, bool,
}
crypter = create(alg, vector->key_size);
if (!crypter)
- { DBG1(DBG_LIB, "%N[%s]: %u bit 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;
@@ -337,7 +338,10 @@ METHOD(crypto_tester_t, test_aead, bool,
}
aead = create(alg, vector->key_size);
if (!aead)
- { /* 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;
}