From 0d8b916e94d5029f363698ed159de7fca862a0b8 Mon Sep 17 00:00:00 2001 From: Jia Jie Ho Date: Thu, 16 Feb 2023 12:24:02 +0800 Subject: [PATCH] CR_3349: crypto: starfive - Remove AES key zeroization Remove key zeroization after each request in AES module. Signed-off-by: Jia Jie Ho --- drivers/crypto/starfive/jh7110/jh7110-aes.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/starfive/jh7110/jh7110-aes.c b/drivers/crypto/starfive/jh7110/jh7110-aes.c index 84174ec..0c9310c 100755 --- a/drivers/crypto/starfive/jh7110/jh7110-aes.c +++ b/drivers/crypto/starfive/jh7110/jh7110-aes.c @@ -652,8 +652,6 @@ static void jh7110_cryp_finish_req(struct jh7110_sec_ctx *ctx, int err) else crypto_finalize_skcipher_request(ctx->sdev->engine, rctx->req.sreq, err); - - memset(ctx->key, 0, ctx->keylen); } static bool jh7110_check_counter_overflow(struct jh7110_sec_ctx *ctx, size_t count) -- 2.7.4