From b7da7cc6ad2f46ddb56004288575a8d33300042d Mon Sep 17 00:00:00 2001 From: Rajeev Ranjan Date: Mon, 4 Dec 2023 09:10:52 +0100 Subject: [PATCH] fixup! cipher_enull_hmac{.c, .h, _hw.c}: add enull_cipher for SHA256 --- providers/implementations/ciphers/cipher_enull_hmac_hw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/providers/implementations/ciphers/cipher_enull_hmac_hw.c b/providers/implementations/ciphers/cipher_enull_hmac_hw.c index 352c81f42d7f8..6e9920deb8fc8 100644 --- a/providers/implementations/ciphers/cipher_enull_hmac_hw.c +++ b/providers/implementations/ciphers/cipher_enull_hmac_hw.c @@ -65,6 +65,10 @@ static int enull_hmac_cipher(PROV_CIPHER_CTX *bctx, unsigned char *out, return 0; } } + + if (in != NULL && out != NULL && in != out) + memcpy(out, in, inl); + return 1; }