summaryrefslogtreecommitdiff
path: root/lib/libcrypto/modes
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2023-04-25 04:42:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2023-04-25 04:42:27 +0000
commit58df9d669d3d7ca4e3d96aec565f39f2d421ed63 (patch)
tree0c7e25baf50f9e7be8f7fac6991861d63dfce089 /lib/libcrypto/modes
parente5afc37d23dd33ecc94dd525498c7d86adad6ff4 (diff)
Add endbr64 where needed by inspection. Passes regresson tests.
ok jsing, and kind of tb an earlier version
Diffstat (limited to 'lib/libcrypto/modes')
-rw-r--r--lib/libcrypto/modes/asm/ghash-x86_64.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libcrypto/modes/asm/ghash-x86_64.pl b/lib/libcrypto/modes/asm/ghash-x86_64.pl
index 71d0822ac91..9ce0c381410 100644
--- a/lib/libcrypto/modes/asm/ghash-x86_64.pl
+++ b/lib/libcrypto/modes/asm/ghash-x86_64.pl
@@ -412,6 +412,7 @@ $code.=<<___;
.type gcm_init_clmul,\@abi-omnipotent
.align 16
gcm_init_clmul:
+ endbr64
movdqu ($Xip),$Hkey
pshufd \$0b01001110,$Hkey,$Hkey # dword swap
@@ -449,6 +450,7 @@ $code.=<<___;
.type gcm_gmult_clmul,\@abi-omnipotent
.align 16
gcm_gmult_clmul:
+ endbr64
movdqu ($Xip),$Xi
movdqa .Lbswap_mask(%rip),$T3
movdqu ($Htbl),$Hkey
@@ -476,6 +478,7 @@ $code.=<<___;
.type gcm_ghash_clmul,\@abi-omnipotent
.align 16
gcm_ghash_clmul:
+ endbr64
___
$code.=<<___ if ($win64);
.LSEH_begin_gcm_ghash_clmul:
@@ -686,6 +689,7 @@ $code.=<<___;
.type se_handler,\@abi-omnipotent
.align 16
se_handler:
+ endbr64
push %rsi
push %rdi
push %rbx