From 1b3841d0ab6962c4ea9d0c3b82556a1294c5dbdc Mon Sep 17 00:00:00 2001 From: Tomasz Kantecki Date: Mon, 19 Feb 2024 11:07:02 +0000 Subject: [PATCH] vaes-avx512: [gcm] fix safe check issues in AES-GCM small packet code --- lib/include/gcm_api_vaes_avx512.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/gcm_api_vaes_avx512.inc b/lib/include/gcm_api_vaes_avx512.inc index e3fc9cdd..055afc2b 100644 --- a/lib/include/gcm_api_vaes_avx512.inc +++ b/lib/include/gcm_api_vaes_avx512.inc @@ -458,7 +458,7 @@ align 32 %ifdef SAFE_DATA clear_zmms_avx512 xmm0, xmm1, xmm2, xmm7, xmm8, xmm9, xmm11, xmm10, xmm14, \ - xmm15, xmm16, xmm17, xmm18, xmm20, xmm21 + xmm15, xmm16, xmm17, xmm18, xmm19, xmm20, xmm21 %endif .exit_enc: @@ -526,7 +526,7 @@ align 32 DEC, {qword [arg2 + _iv_len_in_bytes]} %ifdef SAFE_DATA - clear_zmms_avx512 xmm2, xmm3, xmm4, xmm5, xmm9, xmm15, xmm16, xmm17, xmm18, xmm19, xmm20, xmm21 + clear_zmms_avx512 xmm0, xmm2, xmm3, xmm4, xmm5, xmm8, xmm9, xmm14, xmm15, xmm16, xmm17, xmm18, xmm19, xmm20, xmm21 %endif .exit_dec: ;; mark job complete