Lines Matching refs:err
34 int i, err, primality;
36 if ((err = mp_init_multi(&modulus, &order, NULL)) != CRYPT_OK) {
37 return err;
53 if ((err = mp_read_radix(modulus, (char *)ltc_ecc_sets[i].prime, 16)) != CRYPT_OK) { goto done; }
54 if ((err = mp_read_radix(order, (char *)ltc_ecc_sets[i].order, 16)) != CRYPT_OK) { goto done; }
57 if ((err = mp_prime_is_prime(modulus, 8, &primality)) != CRYPT_OK) { goto done; }
59 err = CRYPT_FAIL_TESTVECTOR;
64 if ((err = mp_prime_is_prime(order, 8, &primality)) != CRYPT_OK) { goto done; }
66 err = CRYPT_FAIL_TESTVECTOR;
70 if ((err = mp_read_radix(G->x, (char *)ltc_ecc_sets[i].Gx, 16)) != CRYPT_OK) { goto done; }
71 if ((err = mp_read_radix(G->y, (char *)ltc_ecc_sets[i].Gy, 16)) != CRYPT_OK) { goto done; }
75 if ((err = mp_add_d(order, 1, order)) != CRYPT_OK) { goto done; }
76 if ((err = ltc_mp.ecc_ptmul(order, G, GG, modulus, 1)) != CRYPT_OK) { goto done; }
78 err = CRYPT_FAIL_TESTVECTOR;
82 err = CRYPT_OK;
87 return err;