Lines Matching refs:CRYPT_OK
31 if ((err = mp_init_multi(&prime, &b, &t1, &t2, NULL)) != CRYPT_OK) {
36 if ((err = mp_read_radix(prime, key->dp->prime, 16)) != CRYPT_OK) { goto error; }
37 if ((err = mp_read_radix(b, key->dp->B, 16)) != CRYPT_OK) { goto error; }
40 if ((err = mp_sqr(key->pubkey.y, t1)) != CRYPT_OK) { goto error; }
43 if ((err = mp_sqr(key->pubkey.x, t2)) != CRYPT_OK) { goto error; }
44 if ((err = mp_mod(t2, prime, t2)) != CRYPT_OK) { goto error; }
45 if ((err = mp_mul(key->pubkey.x, t2, t2)) != CRYPT_OK) { goto error; }
48 if ((err = mp_sub(t1, t2, t1)) != CRYPT_OK) { goto error; }
51 if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto error; }
52 if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto error; }
53 if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto error; }
54 if ((err = mp_mod(t1, prime, t1)) != CRYPT_OK) { goto error; }
56 if ((err = mp_add(t1, prime, t1)) != CRYPT_OK) { goto error; }
59 if ((err = mp_sub(t1, prime, t1)) != CRYPT_OK) { goto error; }
66 err = CRYPT_OK;
79 @return CRYPT_OK if successful, upon error all allocated memory will be freed
92 @return CRYPT_OK if successful, upon error all allocated memory will be freed
105 if (mp_init_multi(&key->pubkey.x, &key->pubkey.y, &key->pubkey.z, &key->k, NULL) != CRYPT_OK) {
112 LTC_ASN1_EOL, 0UL, NULL)) != CRYPT_OK) {
126 LTC_ASN1_EOL, 0UL, NULL)) != CRYPT_OK) {
137 LTC_ASN1_EOL, 0UL, NULL)) != CRYPT_OK) {
155 if ((err = mp_set(key->pubkey.z, 1)) != CRYPT_OK) { goto done; }
158 if ((err = is_point(key)) != CRYPT_OK) {
163 return CRYPT_OK;