RFR: 8371864: GaloisCounterMode.implGCMCrypt0 AVX512/AVX2 intrinsics stubs cause AES-GCM encryption failure for certain payload sizes [v8]

Jiangli Zhou jiangli at openjdk.org
Mon Nov 24 19:14:54 UTC 2025


On Sun, 23 Nov 2025 04:54:15 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:

>> Please review the fix in StubGenerator::aesgcm_avx512 and StubGenerator::aesgcm_avx2 to handle some edge cases with input sizes that are not multiple of the block size. 
>> 
>> Thanks to Thomas Holenstein and Lukas Zobernig for analyzing the issue and providing the test case!
>
> Jiangli Zhou has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fixed the ENCRYPT_16_BLKS fall through case that sviswa7 pointed out in PR review.

> It looks good to me now. Please close JDK-8372364 as it was an artifact of the prior fix.

@sviswa7 thanks for reviewing!

> @jianglizhou Please wait until someone from the Security Group reviews this - thanks.

Will do. Thanks.

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

PR Comment: https://git.openjdk.org/jdk/pull/28363#issuecomment-3572310742


More information about the hotspot-compiler-dev mailing list