Lines Matching refs:err
29 int res, err;
38 if ((err = mp_prime_is_prime(key->q, 8, &res)) != CRYPT_OK) {
39 return err;
45 if ((err = mp_prime_is_prime(key->p, 8, &res)) != CRYPT_OK) {
46 return err;
56 if ((err = mp_init_multi(&tmp, &tmp2, NULL)) != CRYPT_OK) { return err; }
57 if ((err = mp_sub_d(key->p, 1, tmp)) != CRYPT_OK) { goto error; }
59 err = CRYPT_OK;
65 err = CRYPT_OK;
70 if ((err = mp_div(tmp, key->q, tmp, tmp2)) != CRYPT_OK) { goto error; }
72 err = CRYPT_OK;
76 if ((err = mp_exptmod(key->g, key->q, key->p, tmp)) != CRYPT_OK) { goto error; }
78 err = CRYPT_OK;
83 if ((err = mp_exptmod(key->y, key->q, key->p, tmp)) != CRYPT_OK) { goto error; }
85 err = CRYPT_OK;
90 err = CRYPT_OK;
94 return err;