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