[openssl] master update

Dr. Paul Dale pauli at openssl.org
Wed Jun 16 07:06:11 UTC 2021


The branch master has been updated
       via  f763e1351446da952c54e0ea85ec26a436cf4815 (commit)
      from  1941684daf54da9de8cf1d2a9b1df471ecdcb1a1 (commit)


- Log -----------------------------------------------------------------
commit f763e1351446da952c54e0ea85ec26a436cf4815
Author: Dmitry Belyavskiy <beldmit at gmail.com>
Date:   Mon Jun 14 14:30:48 2021 +0200

    Correct processing of AES-SHA stitched ciphers
    
    Fixes: #15706
    
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    Reviewed-by: Shane Lontis <shane.lontis at oracle.com>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/15740)

-----------------------------------------------------------------------

Summary of changes:
 providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 14fbf63b03..24349df159 100644
--- a/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
+++ b/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
@@ -733,7 +733,7 @@ static int aesni_cbc_hmac_sha256_set_tls1_aad(void *vctx,
             if (len < AES_BLOCK_SIZE)
                 return 0;
             len -= AES_BLOCK_SIZE;
-            p[aad_len] = len >> 8;
+            p[aad_len - 2] = len >> 8;
             p[aad_len - 1] = len;
         }
         sctx->md = sctx->head;


More information about the openssl-commits mailing list