]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix P-384 curve on lower-than-P9 PPC64 targets
authorA. Wilcox <AWilcox@Wilcox-Tech.com>
Thu, 17 Apr 2025 13:51:53 +0000 (08:51 -0500)
committerTomas Mraz <tomas@openssl.org>
Fri, 25 Apr 2025 18:04:54 +0000 (20:04 +0200)
commit30ceefaa4ae10996e179b2e7c7d344828dfc70e6
treeb2a48e6a7dec979072d4e449fca042ee4214d0a7
parentc2281cd45a48f7b781e60a74b9bb0a214e37e626
Fix P-384 curve on lower-than-P9 PPC64 targets

The change adding an asm implementation of p384_felem_reduce incorrectly
uses the accelerated version on both targets that support the intrinsics
*and* targets that don't, instead of falling back to the generics on older
targets.  This results in crashes when trying to use P-384 on < Power9.

Signed-off-by: Anna Wilcox <AWilcox@Wilcox-Tech.com>
Closes: #27350
Fixes: 85cabd94 ("Fix Minerva timing side-channel signal for P-384 curve on PPC")
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27429)

(cherry picked from commit 29864f2b0f1046177e8048a5b17440893d3f9425)
crypto/ec/ecp_nistp384.c