diff options
| author | deraadt <> | 2023-04-25 04:42:26 +0000 | 
|---|---|---|
| committer | deraadt <> | 2023-04-25 04:42:26 +0000 | 
| commit | f56bc15e44b93e564d434a7d0b5c8f837812aac3 (patch) | |
| tree | b4ae043f669d9d718f1fecb4ca705a0cf2d2ddc7 /src/lib/libcrypto/modes | |
| parent | bcc671564aeeb25bdf7d30755b4057e14494f592 (diff) | |
| download | openbsd-f56bc15e44b93e564d434a7d0b5c8f837812aac3.tar.gz openbsd-f56bc15e44b93e564d434a7d0b5c8f837812aac3.tar.bz2 openbsd-f56bc15e44b93e564d434a7d0b5c8f837812aac3.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')
| -rw-r--r-- | src/lib/libcrypto/modes/asm/ghash-x86_64.pl | 4 | 
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 | 
| 414 | gcm_init_clmul: | 414 | gcm_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 | 
| 451 | gcm_gmult_clmul: | 452 | gcm_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 | 
| 478 | gcm_ghash_clmul: | 480 | gcm_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 | 
| 688 | se_handler: | 691 | se_handler: | 
| 692 | endbr64 | ||
| 689 | push %rsi | 693 | push %rsi | 
| 690 | push %rdi | 694 | push %rdi | 
| 691 | push %rbx | 695 | push %rbx | 
