keys: Print more useful debug info if encryption algo is not available
Subsystems (3)
PATCH 1/1 keys: Print more useful debug info if encryption algo is not available
Signed-off-by Anatol Pomozov <[email protected]>
--- security/keys/encrypted-keys/encrypted.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
security/keys/encrypted-keys/encrypted.c +2 -2
@@ -84,8 +84,8 @@ static int aes_get_sizes(void) tfm =crypto_alloc_skcipher (blkcipher_alg,0 ,CRYPTO_ALG_ASYNC );if (IS_ERR (tfm)) { -pr_err ("encrypted_key: failed to alloc_cipher (%ld)\n" , -PTR_ERR (tfm)); +pr_err ("encrypted_key: failed to alloc_cipher for %s (%ld)\n" , + blkcipher_alg,PTR_ERR (tfm));return PTR_ERR (tfm); } ivsize =crypto_skcipher_ivsize (tfm);
Signature · 1 line
2.28.0