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

Jiangli Zhou jiangli at openjdk.org
Mon Dec 1 17:32:40 UTC 2025


On Mon, 17 Nov 2025 22:34:14 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!

This pull request has now been integrated.

Changeset: 6cb1c8f9
Author:    Jiangli Zhou <jiangli at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/6cb1c8f9cfcb797af788ca8fb490f388cc68f525
Stats:     151 lines in 2 files changed: 149 ins; 1 del; 1 mod

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

Co-authored-by: Thomas Holenstein <tholenst at google.com>
Co-authored-by: Lukas Zobernig <zlukas at google.com>
Reviewed-by: shade, sviswanathan

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

PR: https://git.openjdk.org/jdk/pull/28363


More information about the hotspot-compiler-dev mailing list