Skip to content

Commit 1eba9fb

Browse files
ruscurerichte-ibm
authored andcommitted
Fix the ppc bn_mul_mont() to use the new prefix system
The symbol prefix changes that began in commit 384f7d0 require that cpu-ppc.c finds the generated prefix header and that bigint.rs looks for the correctly prefixed bn_mul_mont(). Signed-off-by: Russell Currey <[email protected]>
1 parent fbf1fec commit 1eba9fb

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

crypto/cpu-ppc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
*/
99
/* This file is derived from ppccap.c in OpenSSL */
1010

11-
11+
// Must be included for bn_mul_mont to have the correct symbol
12+
#include <ring-core/base.h>
1213

1314
int bn_mul_mont_int(unsigned long *rp, const unsigned long *ap, const unsigned long *bp,
1415
const unsigned long *np, const unsigned long *n0, int num);
1516
int bn_mul4x_mont_int(unsigned long *rp, const unsigned long *ap, const unsigned long *bp,
1617
const unsigned long *np, const unsigned long *n0, int num);
17-
int GFp_bn_mul_mont(unsigned long *rp, const unsigned long *ap, const unsigned long *bp,
18+
int bn_mul_mont(unsigned long *rp, const unsigned long *ap, const unsigned long *bp,
1819
const unsigned long *np, const unsigned long *n0, int num)
1920
{
2021
if (num < 4)

src/arithmetic/bigint.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,8 @@ fn limbs_mont_square(r: &mut [Limb], m: &[Limb], n0: &N0, _cpu_features: cpu::Fe
13811381
target_arch = "aarch64",
13821382
target_arch = "arm",
13831383
target_arch = "x86_64",
1384-
target_arch = "x86"
1384+
target_arch = "x86",
1385+
target_arch = "powerpc64"
13851386
))]
13861387
prefixed_extern! {
13871388
// `r` and/or 'a' and/or 'b' may alias.

0 commit comments

Comments
 (0)