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; }