]> 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:31 +0000 (20:04 +0200)
commit29864f2b0f1046177e8048a5b17440893d3f9425
tree8d6b16af275c7df7a231aa5fdbe93647933e8065
parente8b03fbcdab154e3b253e72af0207a017b0fe229
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)
crypto/ec/ecp_nistp384.c