[PATCH 05/11] sm3-aarch64-ce: clear volatile vector registers

Jussi Kivilinna jussi.kivilinna at iki.fi
Sun Nov 3 20:56:49 CET 2024


* cipher/sm3-armv8-aarch64-ce.S: Add CLEAR_ALL_REGS.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 cipher/sm3-armv8-aarch64-ce.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cipher/sm3-armv8-aarch64-ce.S b/cipher/sm3-armv8-aarch64-ce.S
index 5f5f599d..6b678971 100644
--- a/cipher/sm3-armv8-aarch64-ce.S
+++ b/cipher/sm3-armv8-aarch64-ce.S
@@ -214,6 +214,7 @@ _gcry_sm3_transform_armv8_ce:
     ext         CTX2.16b, CTX2.16b, CTX2.16b, #8;
     st1         {CTX1.4s, CTX2.4s}, [x0];
 
+    CLEAR_ALL_REGS();
     ret_spec_stop;
     CFI_ENDPROC();
 ELF(.size _gcry_sm3_transform_armv8_ce, .-_gcry_sm3_transform_armv8_ce;)
-- 
2.45.2




More information about the Gcrypt-devel mailing list