Skip to content

Commit ec80cbc

Browse files
Merged PR 6709832: Fix typo in AES-Gcm Ymm debug assertion
+ Caused a pipeline failure when an amd64chk run happened to run on an IceLake server. + Tested on my IceLake Surface Laptop 3, debug build was consistently hitting this assert before and is resolved with the change Related work items: #37173800
1 parent 2cba139 commit ec80cbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/aes-ymm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ SymCryptAesGcmEncryptStitchedYmm_2048(
621621
_mm_storeu_si128((__m128i *) pState, state );
622622

623623
cbData &= ( GCM_YMM_MINBLOCKS*SYMCRYPT_AES_BLOCK_SIZE ) - 1;
624-
SYMCRYPT_ASSERT( cbData == nBlocks*SYMCRYPT_AES_BLOCK_SIZE );
624+
SYMCRYPT_ASSERT( cbData == (nBlocks-16)*SYMCRYPT_AES_BLOCK_SIZE );
625625
if ( cbData >= SYMCRYPT_AES_BLOCK_SIZE )
626626
{
627627
SymCryptAesGcmEncryptStitchedXmm( pExpandedKey, pbChainingValue, expandedKeyTable, pState, pbSrc, pbDst, cbData);

0 commit comments

Comments
 (0)