Skip to content

Commit dac8275

Browse files
minadsjaeckel
authored andcommitted
fix mp_jacobi ifdef
1 parent 6631d42 commit dac8275

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bn_deprecated.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int mp_get_bit(const mp_int *a, int b)
1818
return s_mp_get_bit(a, (unsigned int)b) == MP_YES ? MP_YES : MP_NO;
1919
}
2020
#endif
21-
#ifdef BN_MP_JACOBI_C
21+
#ifdef BN_S_MP_JACOBI_C
2222
mp_err s_mp_jacobi(const mp_int *a, const mp_int *n, int *c)
2323
{
2424
if (a->sign == MP_NEG) {
@@ -29,6 +29,8 @@ mp_err s_mp_jacobi(const mp_int *a, const mp_int *n, int *c)
2929
}
3030
return mp_kronecker(a, n, c);
3131
}
32+
#endif
33+
#ifdef BN_MP_JACOBI_C
3234
mp_err mp_jacobi(const mp_int *a, const mp_int *n, int *c)
3335
{
3436
return s_mp_jacobi(a, n, c);

0 commit comments

Comments
 (0)