]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix unrolled montgomery multiplication for POWER9
authorRohan McLure <rohanmclure@linux.ibm.com>
Thu, 30 Jun 2022 06:21:06 +0000 (16:21 +1000)
committerTomas Mraz <tomas@openssl.org>
Wed, 17 Aug 2022 11:00:50 +0000 (13:00 +0200)
commit2f1112b22a826dc8854b41b60a422c987f8ddafb
tree882f5ef92e4824bd3907d37713a201818c15bad3
parenteae70100fadbc94f18ba7a729bf065cb524a9fc9
Fix unrolled montgomery multiplication for POWER9

In the reference C implementation in bn_asm.c, tp[num + 1] contains the
carry bit for accumulations into tp[num]. tp[num + 1] is only ever
assigned, never itself incremented.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18883)
crypto/bn/asm/ppc64-mont-fixed.pl