Lines Matching refs:MP_OKAY
203 if (mp_invmod(&val1, key->q, &val2) != MP_OKAY) { in buf_dss_verify()
212 if (mp_mulmod(&val1, &val2, key->q, &val3) != MP_OKAY) { in buf_dss_verify()
224 if (mp_mulmod(&val1, &val2, key->q, &val4) != MP_OKAY) { in buf_dss_verify()
230 if (mp_exptmod(key->g, &val3, key->p, &val2) != MP_OKAY) { in buf_dss_verify()
234 if (mp_exptmod(key->y, &val4, key->p, &val3) != MP_OKAY) { in buf_dss_verify()
238 if (mp_mulmod(&val2, &val3, key->p, &val4) != MP_OKAY) { in buf_dss_verify()
242 if (mp_mod(&val4, key->q, &val2) != MP_OKAY) { in buf_dss_verify()
272 if (mp_to_unsigned_bin(mp, ret) != MP_OKAY) { in mptobytes()
344 if (mp_mod(&dss_protok, key->q, &dss_k) != MP_OKAY) { in buf_put_dss_sign()
357 if (mp_exptmod(key->g, &dss_k, key->p, &dss_temp1) != MP_OKAY) { in buf_put_dss_sign()
361 if (mp_mod(&dss_temp1, key->q, &dss_r) != MP_OKAY) { in buf_put_dss_sign()
366 if (mp_mulmod(&dss_r, key->x, key->q, &dss_temp1) != MP_OKAY) { in buf_put_dss_sign()
370 if (mp_addmod(&dss_m, &dss_temp1, key->q, &dss_temp2) != MP_OKAY) { in buf_put_dss_sign()
375 if (mp_invmod(&dss_k, key->q, &dss_temp1) != MP_OKAY) { in buf_put_dss_sign()
380 if (mp_mulmod(&dss_temp1, &dss_temp2, key->q, &dss_s) != MP_OKAY) { in buf_put_dss_sign()
394 != MP_OKAY) { in buf_put_dss_sign()
407 != MP_OKAY) { in buf_put_dss_sign()