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

Jussi Kivilinna <[email protected]>
Newsgroups gmane.comp.encryption.gpg.libgcrypt.devel
Message-ID <[email protected]>
* cipher/sm3-armv8-aarch64-ce.S: Add CLEAR_ALL_REGS.
--

Signed-off-by: Jussi Kivilinna <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.