From: deraadt Date: Mon, 18 Sep 2023 22:38:16 +0000 (+0000) Subject: aesni_ctr32_encrypt_blocks() is called indirectly from C code, so it X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2d583a8ad8ed8375522e8310270047356994ef3f;p=openbsd aesni_ctr32_encrypt_blocks() is called indirectly from C code, so it needs endbr64 ok kettenis tb --- diff --git a/lib/libcrypto/aes/asm/aesni-x86_64.pl b/lib/libcrypto/aes/asm/aesni-x86_64.pl index c261a379580..07d40a84ab1 100644 --- a/lib/libcrypto/aes/asm/aesni-x86_64.pl +++ b/lib/libcrypto/aes/asm/aesni-x86_64.pl @@ -1025,6 +1025,7 @@ $code.=<<___; .type aesni_ctr32_encrypt_blocks,\@function,5 .align 16 aesni_ctr32_encrypt_blocks: + endbr64 lea (%rsp),%rax push %rbp sub \$$frame_size,%rsp