aesni_ctr32_encrypt_blocks() is called indirectly from C code, so it
authorderaadt <deraadt@openbsd.org>
Mon, 18 Sep 2023 22:38:16 +0000 (22:38 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 18 Sep 2023 22:38:16 +0000 (22:38 +0000)
needs endbr64
ok kettenis tb

lib/libcrypto/aes/asm/aesni-x86_64.pl

index c261a37..07d40a8 100644 (file)
@@ -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