From: Andreas Steffen Date: Sat, 25 Dec 2010 14:53:15 +0000 (+0100) Subject: log if an AEAD algorithm does not support a given key size X-Git-Tag: 4.5.1~345 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6a043fad08086ec5b2ff98b335053809e29bc05;p=thirdparty%2Fstrongswan.git log if an AEAD algorithm does not support a given key size --- diff --git a/src/libstrongswan/crypto/crypto_tester.c b/src/libstrongswan/crypto/crypto_tester.c index 36c832013b..9c852c054c 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; }