diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-02-24 17:53:21 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-02-24 17:53:21 +0000 |
commit | 135b66ef9040a66e979fad9417df07b54ccb4817 (patch) | |
tree | cbec3881c5ec806a154ef25bd2a7c30df4c2d2db /lib | |
parent | 004256b1b6189d447fc5a30027c51933607beec4 (diff) |
Add a few missing endbr64 to libcrypto
gcm_{gmult,ghash}_4bit(), aesni_ccm64_decrypt_blocks(), aes_cbc_encrypt(),
and aesni_xts_{en,de}crypt() were overlooked in previous passes.
Found with a diff for ld.lld by kettenis
ok kettenis
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/aes/asm/aesni-x86_64.pl | 4 | ||||
-rw-r--r-- | lib/libcrypto/modes/asm/ghash-x86_64.pl | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/libcrypto/aes/asm/aesni-x86_64.pl b/lib/libcrypto/aes/asm/aesni-x86_64.pl index 43013a51fb4..441524036a8 100644 --- a/lib/libcrypto/aes/asm/aesni-x86_64.pl +++ b/lib/libcrypto/aes/asm/aesni-x86_64.pl @@ -918,6 +918,7 @@ $code.=<<___; .type aesni_ccm64_decrypt_blocks,\@function,6 .align 16 aesni_ccm64_decrypt_blocks: + _CET_ENDBR ___ $code.=<<___ if ($win64); lea -0x58(%rsp),%rsp @@ -1317,6 +1318,7 @@ $code.=<<___; .type aesni_xts_encrypt,\@function,6 .align 16 aesni_xts_encrypt: + _CET_ENDBR lea (%rsp),%rax push %rbp sub \$$frame_size,%rsp @@ -1711,6 +1713,7 @@ $code.=<<___; .type aesni_xts_decrypt,\@function,6 .align 16 aesni_xts_decrypt: + _CET_ENDBR lea (%rsp),%rax push %rbp sub \$$frame_size,%rsp @@ -2148,6 +2151,7 @@ $code.=<<___; .type ${PREFIX}_cbc_encrypt,\@function,6 .align 16 ${PREFIX}_cbc_encrypt: + _CET_ENDBR test $len,$len # check length jz .Lcbc_ret diff --git a/lib/libcrypto/modes/asm/ghash-x86_64.pl b/lib/libcrypto/modes/asm/ghash-x86_64.pl index f3caac15d6f..bf547a041ba 100644 --- a/lib/libcrypto/modes/asm/ghash-x86_64.pl +++ b/lib/libcrypto/modes/asm/ghash-x86_64.pl @@ -165,6 +165,7 @@ $code=<<___; .type gcm_gmult_4bit,\@function,2 .align 16 gcm_gmult_4bit: + _CET_ENDBR push %rbx push %rbp # %rbp and %r12 are pushed exclusively in push %r12 # order to reuse Win64 exception handler... @@ -195,6 +196,7 @@ $code.=<<___; .type gcm_ghash_4bit,\@function,4 .align 16 gcm_ghash_4bit: + _CET_ENDBR push %rbx push %rbp push %r12 |