comparison bn_mp_prime_is_divisible.c @ 190:d8254fc979e9 libtommath-orig LTM_0.35

Initial import of libtommath 0.35
author Matt Johnston <matt@ucc.asn.au>
date Fri, 06 May 2005 08:59:30 +0000
parents d29b64170cf0
children
comparison
equal deleted inserted replaced
142:d29b64170cf0 190:d8254fc979e9
27 27
28 /* default to not */ 28 /* default to not */
29 *result = MP_NO; 29 *result = MP_NO;
30 30
31 for (ix = 0; ix < PRIME_SIZE; ix++) { 31 for (ix = 0; ix < PRIME_SIZE; ix++) {
32 /* what is a mod __prime_tab[ix] */ 32 /* what is a mod LBL_prime_tab[ix] */
33 if ((err = mp_mod_d (a, __prime_tab[ix], &res)) != MP_OKAY) { 33 if ((err = mp_mod_d (a, ltm_prime_tab[ix], &res)) != MP_OKAY) {
34 return err; 34 return err;
35 } 35 }
36 36
37 /* is the residue zero? */ 37 /* is the residue zero? */
38 if (res == 0) { 38 if (res == 0) {