Lines Matching refs:CRYPT_OK
31 @return CRYPT_OK on success
42 if ((err = mp_init_multi(&t1, &t2, NULL)) != CRYPT_OK) {
47 if ((err = mp_montgomery_reduce(P->z, modulus, mp)) != CRYPT_OK) { goto done; }
50 if ((err = mp_invmod(P->z, modulus, t1)) != CRYPT_OK) { goto done; }
53 if ((err = mp_sqr(t1, t2)) != CRYPT_OK) { goto done; }
54 if ((err = mp_mod(t2, modulus, t2)) != CRYPT_OK) { goto done; }
55 if ((err = mp_mul(t1, t2, t1)) != CRYPT_OK) { goto done; }
56 if ((err = mp_mod(t1, modulus, t1)) != CRYPT_OK) { goto done; }
59 if ((err = mp_mul(P->x, t2, P->x)) != CRYPT_OK) { goto done; }
60 if ((err = mp_montgomery_reduce(P->x, modulus, mp)) != CRYPT_OK) { goto done; }
61 if ((err = mp_mul(P->y, t1, P->y)) != CRYPT_OK) { goto done; }
62 if ((err = mp_montgomery_reduce(P->y, modulus, mp)) != CRYPT_OK) { goto done; }
63 if ((err = mp_set(P->z, 1)) != CRYPT_OK) { goto done; }
65 err = CRYPT_OK;