summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/modes/asm
diff options
context:
space:
mode:
authorderaadt <>2023-04-25 04:42:26 +0000
committerderaadt <>2023-04-25 04:42:26 +0000
commite2118101444d3cf3cab87297b363cecd5357ae89 (patch)
treeb4ae043f669d9d718f1fecb4ca705a0cf2d2ddc7 /src/lib/libcrypto/modes/asm
parentc6490b97c04798e5cd36a489e3ba5ffc4a66550b (diff)
downloadopenbsd-e2118101444d3cf3cab87297b363cecd5357ae89.tar.gz
openbsd-e2118101444d3cf3cab87297b363cecd5357ae89.tar.bz2
openbsd-e2118101444d3cf3cab87297b363cecd5357ae89.zip
Add endbr64 where needed by inspection. Passes regresson tests.
ok jsing, and kind of tb an earlier version
Diffstat (limited to 'src/lib/libcrypto/modes/asm')
-rw-r--r--src/lib/libcrypto/modes/asm/ghash-x86_64.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libcrypto/modes/asm/ghash-x86_64.pl b/src/lib/libcrypto/modes/asm/ghash-x86_64.pl
index 71d0822ac9..9ce0c38141 100644
--- a/src/lib/libcrypto/modes/asm/ghash-x86_64.pl
+++ b/src/lib/libcrypto/modes/asm/ghash-x86_64.pl
@@ -412,6 +412,7 @@ $code.=<<___;
412.type gcm_init_clmul,\@abi-omnipotent 412.type gcm_init_clmul,\@abi-omnipotent
413.align 16 413.align 16
414gcm_init_clmul: 414gcm_init_clmul:
415 endbr64
415 movdqu ($Xip),$Hkey 416 movdqu ($Xip),$Hkey
416 pshufd \$0b01001110,$Hkey,$Hkey # dword swap 417 pshufd \$0b01001110,$Hkey,$Hkey # dword swap
417 418
@@ -449,6 +450,7 @@ $code.=<<___;
449.type gcm_gmult_clmul,\@abi-omnipotent 450.type gcm_gmult_clmul,\@abi-omnipotent
450.align 16 451.align 16
451gcm_gmult_clmul: 452gcm_gmult_clmul:
453 endbr64
452 movdqu ($Xip),$Xi 454 movdqu ($Xip),$Xi
453 movdqa .Lbswap_mask(%rip),$T3 455 movdqa .Lbswap_mask(%rip),$T3
454 movdqu ($Htbl),$Hkey 456 movdqu ($Htbl),$Hkey
@@ -476,6 +478,7 @@ $code.=<<___;
476.type gcm_ghash_clmul,\@abi-omnipotent 478.type gcm_ghash_clmul,\@abi-omnipotent
477.align 16 479.align 16
478gcm_ghash_clmul: 480gcm_ghash_clmul:
481 endbr64
479___ 482___
480$code.=<<___ if ($win64); 483$code.=<<___ if ($win64);
481.LSEH_begin_gcm_ghash_clmul: 484.LSEH_begin_gcm_ghash_clmul:
@@ -686,6 +689,7 @@ $code.=<<___;
686.type se_handler,\@abi-omnipotent 689.type se_handler,\@abi-omnipotent
687.align 16 690.align 16
688se_handler: 691se_handler:
692 endbr64
689 push %rsi 693 push %rsi
690 push %rdi 694 push %rdi
691 push %rbx 695 push %rbx