Home | History | Annotate | Download | only in common

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);
186 bits = crypto_ec_prime_len_bits(sae->tmp->ec);
202 if (crypto_ec_point_solve_y_coord(sae->tmp->ec, pwe, x, y_bit) < 0) {
300 sae->tmp->pwe_ecc = crypto_ec_point_init(sae->tmp->ec);
304 pwe_tmp = crypto_ec_point_init(sae->tmp->ec);
428 crypto_ec_point_init(sae->tmp->ec);
433 if (crypto_ec_point_mul(sae->tmp->ec, sae->tmp->pwe_ecc, mask,
435 crypto_ec_point_invert(sae->tmp->ec,
490 if (sae->tmp->ec && sae_derive_commit_element_ecc(sae, mask) < 0)
506 if (sae->tmp->ec && sae_derive_pwe_ecc(sae, addr1, addr2, password,
523 K = crypto_ec_point_init(sae->tmp->ec);
534 if (crypto_ec_point_mul(sae->tmp->ec, sae->tmp->pwe_ecc,
536 crypto_ec_point_add(sae->tmp->ec, K,
538 crypto_ec_point_mul(sae->tmp->ec, K, sae->tmp->sae_rand, K) < 0 ||
539 crypto_ec_point_is_at_infinity(sae->tmp->ec, K) ||
540 crypto_ec_point_to_bin(sae->tmp->ec, K, k, NULL) < 0) {
637 if ((sae->tmp->ec && sae_derive_k_ecc(sae, k) < 0) ||
657 if (sae->tmp->ec) {
659 crypto_ec_point_to_bin(sae->tmp->ec,
718 if (*pos + (sae->tmp->ec ? 3 : 2) * sae->tmp->prime_len < end) {
719 size_t tlen = end - (*pos + (sae->tmp->ec ? 3 : 2) *
814 crypto_ec_point_from_bin(sae->tmp->ec, pos);
818 if (!crypto_ec_point_is_on_curve(sae->tmp->ec,
954 crypto_ec_point_to_bin(sae->tmp->ec, element1, element_b1,
956 crypto_ec_point_to_bin(sae->tmp->ec, element2, element_b2,
993 if (sae->tmp->ec)
1019 if (sae->tmp->ec)