Lines Matching refs:n1
4070 /* n1 = n mod a1 */
5755 mp_int n1, y, r;
5766 /* get n1 = a - 1 */
5767 if ((err = mp_init_copy (&n1, a)) != MP_OKAY) {
5770 if ((err = mp_sub_d (&n1, 1, &n1)) != MP_OKAY) {
5774 /* set 2**s * r = n1 */
5775 if ((err = mp_init_copy (&r, &n1)) != MP_OKAY) {
5797 /* if y != 1 and y != n1 do */
5798 if (mp_cmp_d (&y, 1) != MP_EQ && mp_cmp (&y, &n1) != MP_EQ) {
5800 /* while j <= s-1 and y != n1 */
5801 while ((j <= (s - 1)) && mp_cmp (&y, &n1) != MP_EQ) {
5814 /* if y != n1 then composite */
5815 if (mp_cmp (&y, &n1) != MP_EQ) {
5824 LBL_N1:mp_clear (&n1);