Lines Matching refs:prime
1151 BIGNUM *prime; member
1209 e->prime = BN_new(); in crypto_ec_init()
1213 if (e->group == NULL || e->bnctx == NULL || e->prime == NULL || in crypto_ec_init()
1215 !EC_GROUP_get_curve_GFp(e->group, e->prime, e->a, e->b, e->bnctx) || in crypto_ec_init()
1232 BN_clear_free(e->prime); in crypto_ec_deinit()
1249 return BN_num_bytes(e->prime); in crypto_ec_prime_len()
1255 return BN_num_bits(e->prime); in crypto_ec_prime_len_bits()
1261 return (const struct crypto_bignum *) e->prime; in crypto_ec_get_prime()
1285 int len = BN_num_bytes(e->prime); in crypto_ec_point_to_bin()
1315 int len = BN_num_bytes(e->prime); in crypto_ec_point_from_bin()
1389 BN_mod_sqr(tmp, (const BIGNUM *) x, e->prime, e->bnctx) && in crypto_ec_point_compute_y_sqr()
1390 BN_mod_mul(tmp, tmp, (const BIGNUM *) x, e->prime, e->bnctx) && in crypto_ec_point_compute_y_sqr()
1391 BN_mod_mul(tmp2, e->a, (const BIGNUM *) x, e->prime, e->bnctx) && in crypto_ec_point_compute_y_sqr()
1392 BN_mod_add_quick(tmp2, tmp2, tmp, e->prime) && in crypto_ec_point_compute_y_sqr()
1393 BN_mod_add_quick(tmp2, tmp2, e->b, e->prime)) { in crypto_ec_point_compute_y_sqr()