fix F-706: AES-CTR and AES-OFB Encrypt Leak Aes Context Containing Key Schedule on skcipher_walk_done Error

This commit is contained in:
Daniel Pouzzner
2026-06-09 17:31:21 -05:00
parent afc2137351
commit b4139b1a90
+2 -2
View File
@@ -2539,7 +2539,7 @@ static int km_AesCtrEncrypt(struct skcipher_request *req)
if (unlikely(err)) {
pr_err("%s: skcipher_walk_done failed: %d\n",
crypto_tfm_alg_driver_name(crypto_skcipher_tfm(tfm)), err);
return err;
goto out;
}
}
@@ -2719,7 +2719,7 @@ static int km_AesOfbEncrypt(struct skcipher_request *req)
if (unlikely(err)) {
pr_err("%s: skcipher_walk_done failed: %d\n",
crypto_tfm_alg_driver_name(crypto_skcipher_tfm(tfm)), err);
return err;
goto out;
}
}