Lines Matching refs:MP_OKAY
83 if (mp_prime_next_prime(key->q, 18, 0) != MP_OKAY) { in getq()
102 if (mp_mul_d(key->q, 2, &temp2q) != MP_OKAY) { in getp()
119 if (mp_mod(&tempX, &temp2q, &tempC) != MP_OKAY) { in getp()
125 if (mp_sub(&tempX, &tempC, &tempP) != MP_OKAY) { in getp()
130 if (mp_add_d(&tempP, 1, key->p) != MP_OKAY) { in getp()
137 if (mp_prime_is_prime(key->p, 5, &result) != MP_OKAY) { in getp()
157 if (mp_sub_d(key->p, 1, &val) != MP_OKAY) { in getg()
161 if (mp_div(&val, key->q, &div, NULL) != MP_OKAY) { in getg()
170 if (mp_exptmod(&h, &div, key->p, key->g) != MP_OKAY) { in getg()
175 if (mp_add_d(&h, 1, &h) != MP_OKAY) { in getg()
192 if (mp_exptmod(key->g, key->x, key->p, key->y) != MP_OKAY) { in gety()