crypto: authenc - don't leak pointers to authenc keys
[linux-block.git] / crypto / authenc.c
index d3d6d72fe649ff00e87bf3a2eb0db591da11081e..4fa8d40d947b7594f8a7b089a8a86e8ea1b5e81d 100644 (file)
@@ -108,6 +108,7 @@ static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key,
                                       CRYPTO_TFM_RES_MASK);
 
 out:
+       memzero_explicit(&keys, sizeof(keys));
        return err;
 
 badkey: