]> git.ipfire.org Git - thirdparty/openssl.git/commit
Restore correct registers in aarch64 AES-CTR code
authorJulian Andres Klode <julian.klode@canonical.com>
Sat, 18 Jan 2025 20:12:45 +0000 (21:12 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 21 Jan 2025 09:56:22 +0000 (10:56 +0100)
commit3ad2277e4522d363ae31a1888531915bb68964dc
tree0a4b90198c65394fcfa1870eb65d87aa0d21579d
parent3fc4b112da2e2107a65ae2556fb6137098e08801
Restore correct registers in aarch64 AES-CTR code

Commit 1d1ca79fe35dbe5c05faed5a2ef8c4de9c5adc49 introduced
save and restore for the registers, saving them as

stp d8,d9,[sp, #16]
stp d10,d11,[sp, #32]
stp d12,d13,[sp, #48]
stp d14,d15,[sp, #64]

But the restore code was inadvertently typoed:

ldp d8,d9,[sp, #16]
ldp d10,d11,[sp, #32]
ldp d12,d13,[sp, #48]
ldp d15,d16,[sp, #64]

Restoring [sp, #64] into d15,d16 instead of d14,d15.

Fixes: #26466
CLA: trivial

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26469)

(cherry picked from commit 5261f3ca41cda7ad5767e399e9a2dc008bbad5d6)
crypto/aes/asm/aesv8-armx.pl