Lines Matching refs:ec

30 	tmp->ec = crypto_ec_init(group);
31 if (tmp->ec) {
33 tmp->prime_len = crypto_ec_prime_len(tmp->ec);
34 tmp->prime = crypto_ec_get_prime(tmp->ec);
35 tmp->order = crypto_ec_get_order(tmp->ec);
79 crypto_ec_deinit(tmp->ec);
188 bits = crypto_ec_prime_len_bits(sae->tmp->ec);
204 if (crypto_ec_point_solve_y_coord(sae->tmp->ec, pwe, x, y_bit) < 0) {
302 sae->tmp->pwe_ecc = crypto_ec_point_init(sae->tmp->ec);
306 pwe_tmp = crypto_ec_point_init(sae->tmp->ec);
430 crypto_ec_point_init(sae->tmp->ec);
435 if (crypto_ec_point_mul(sae->tmp->ec, sae->tmp->pwe_ecc, mask,
437 crypto_ec_point_invert(sae->tmp->ec,
492 if (sae->tmp->ec && sae_derive_commit_element_ecc(sae, mask) < 0)
510 if (sae->tmp->ec && sae_derive_pwe_ecc(sae, addr1, addr2, password,
527 K = crypto_ec_point_init(sae->tmp->ec);
538 if (crypto_ec_point_mul(sae->tmp->ec, sae->tmp->pwe_ecc,
540 crypto_ec_point_add(sae->tmp->ec, K,
542 crypto_ec_point_mul(sae->tmp->ec, K, sae->tmp->sae_rand, K) < 0 ||
543 crypto_ec_point_is_at_infinity(sae->tmp->ec, K) ||
544 crypto_ec_point_to_bin(sae->tmp->ec, K, k, NULL) < 0) {
642 (sae->tmp->ec && sae_derive_k_ecc(sae, k) < 0) ||
666 if (sae->tmp->ec) {
668 crypto_ec_point_to_bin(sae->tmp->ec,
732 if (*pos + (sae->tmp->ec ? 3 : 2) * sae->tmp->prime_len < end) {
733 size_t tlen = end - (*pos + (sae->tmp->ec ? 3 : 2) *
828 crypto_ec_point_from_bin(sae->tmp->ec, pos);
832 if (!crypto_ec_point_is_on_curve(sae->tmp->ec,
968 crypto_ec_point_to_bin(sae->tmp->ec, element1, element_b1,
970 crypto_ec_point_to_bin(sae->tmp->ec, element2, element_b2,
1010 if (sae->tmp->ec)
1041 if (sae->tmp->ec)