]> git.ipfire.org Git - thirdparty/openssl.git/commit
powerpc: ecc: Fix stack allocation secp384r1 asm
authorRohan McLure <rohanmclure@linux.ibm.com>
Wed, 16 Aug 2023 06:52:47 +0000 (16:52 +1000)
committerHugo Landau <hlandau@openssl.org>
Fri, 1 Sep 2023 09:06:54 +0000 (10:06 +0100)
commit50f8b936b00dc18ce1f622a7a6aa46daf03da48b
treeaf4d14fc58677bfce81cea434c33851bd2fcb840
parent670e73d9084465384b11ef24802ca4a313e1d2f4
powerpc: ecc: Fix stack allocation secp384r1 asm

Assembly acceleration secp384r1 opts to not use any callee-save VSRs, as
VSX enabled systems make extensive use of renaming, and so writebacks in
felem_{mul,square}() can be reordered for best cache effects.

Remove stack allocations. This in turn fixes unmatched push/pops in
felem_{mul,square}().

Signed-off-by: Rohan McLure <rohan.mclure@linux.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21749)
crypto/ec/asm/ecp_nistp384-ppc64.pl