diff options
Diffstat (limited to 'providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c')
-rw-r--r-- | providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c b/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c index 8587c414cd..03d06f8870 100644 --- a/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c +++ b/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c @@ -62,7 +62,8 @@ static int aesni_cbc_hmac_sha256_init_key(PROV_CIPHER_CTX *vctx, ctx->payload_length = NO_PAYLOAD_LENGTH; - vctx->removetlspad = SHA256_DIGEST_LENGTH + AES_BLOCK_SIZE; + vctx->removetlspad = 1; + vctx->removetlsfixed = SHA256_DIGEST_LENGTH + AES_BLOCK_SIZE; return ret < 0 ? 0 : 1; } |