OSDN Git Service

crypto: authenc - don't leak pointers to authenc keys
[android-x86/kernel.git] / crypto / authenc.c
index a7e1ac7..c3180eb 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: