/freebsd/contrib/wpa/src/eap_common/ |
H A D | eap_pwd_common.c | 153 if (crypto_bignum_to_bin(prime, prime_bin, sizeof(prime_bin), in compute_password_element() 165 crypto_bignum_to_bin(qr, qr_bin, sizeof(qr_bin), in compute_password_element() 167 crypto_bignum_to_bin(qnr, qnr_bin, sizeof(qnr_bin), in compute_password_element() 274 crypto_bignum_to_bin(y, x_y, MAX_ECC_PRIME_LEN, primebytelen) < 0 || in compute_password_element() 276 crypto_bignum_to_bin(y, x_y + MAX_ECC_PRIME_LEN, in compute_password_element() 359 if (crypto_bignum_to_bin(peer_scalar, cruft, order_len, in compute_keys() 366 if (crypto_bignum_to_bin(server_scalar, cruft, order_len, in compute_keys() 382 if (crypto_bignum_to_bin(k, cruft, prime_len, prime_len) < 0) { in compute_keys()
|
/freebsd/contrib/wpa/src/common/ |
H A D | sae.c | 315 if (crypto_bignum_to_bin(sae->tmp->prime, prime, sizeof(prime), in sae_derive_pwe_ecc() 324 crypto_bignum_to_bin(qr, qr_bin, sizeof(qr_bin), prime_len) < 0 || in sae_derive_pwe_ecc() 325 crypto_bignum_to_bin(qnr, qnr_bin, sizeof(qnr_bin), prime_len) < 0) in sae_derive_pwe_ecc() 413 crypto_bignum_to_bin(y, x_y, SAE_MAX_ECC_PRIME_LEN, in sae_derive_pwe_ecc() 416 crypto_bignum_to_bin(y, x_y + SAE_MAX_ECC_PRIME_LEN, in sae_derive_pwe_ecc() 513 if (crypto_bignum_to_bin(pwe, pwe_buf + prime_len, prime_len, in sae_derive_pwe_ffc() 618 if (bin && crypto_bignum_to_bin(a, bin, prime_len, prime_len) >= 0) in debug_print_bignum() 713 if (crypto_bignum_to_bin(x1a, bin1, sizeof(bin1), prime_len) < 0 || in sswu() 714 crypto_bignum_to_bin(x1b, bin2, sizeof(bin2), prime_len) < 0) in sswu() 755 if (crypto_bignum_to_bin(gx1, bin1, sizeof(bin1), prime_len) < 0 || in sswu() [all …]
|
H A D | dragonfly.c | 238 if (crypto_bignum_to_bin(prime, prime_bin, sizeof(prime_bin), in dragonfly_sqrt()
|
H A D | sae_pk.c | 570 if (crypto_bignum_to_bin(ap ? tmp->own_commit_scalar : in sae_pk_hash_sig_data() 574 crypto_bignum_to_bin(ap ? sae->peer_commit_scalar : in sae_pk_hash_sig_data()
|
H A D | common_module_tests.c | 491 if (crypto_bignum_to_bin(pwe, bin, sizeof(bin), in sae_tests()
|
H A D | dpp_crypto.c | 1081 crypto_bignum_to_bin(lx, auth->Lx, sizeof(auth->Lx), in dpp_auth_derive_l_responder() 1123 crypto_bignum_to_bin(lx, auth->Lx, sizeof(auth->Lx), in dpp_auth_derive_l_initiator()
|
/freebsd/contrib/wpa/src/eap_server/ |
H A D | eap_server_pwd.c | 296 if (crypto_bignum_to_bin(data->my_scalar, scalar, order_len, in eap_pwd_build_commit_req() 355 if (crypto_bignum_to_bin(data->k, cruft, prime_len, prime_len) < 0) in eap_pwd_build_confirm_req() 370 if (crypto_bignum_to_bin(data->my_scalar, cruft, order_len, in eap_pwd_build_confirm_req() 386 if (crypto_bignum_to_bin(data->peer_scalar, cruft, order_len, in eap_pwd_build_confirm_req() 799 if (crypto_bignum_to_bin(data->k, cruft, prime_len, prime_len) < 0) in eap_pwd_process_confirm_resp() 814 if (crypto_bignum_to_bin(data->peer_scalar, cruft, order_len, in eap_pwd_process_confirm_resp() 830 if (crypto_bignum_to_bin(data->my_scalar, cruft, order_len, in eap_pwd_process_confirm_resp()
|
/freebsd/contrib/wpa/src/eap_peer/ |
H A D | eap_pwd.c | 669 if (crypto_bignum_to_bin(data->my_scalar, scalar, order_len, in eap_pwd_perform_commit_exchange() 748 if (crypto_bignum_to_bin(data->k, cruft, prime_len, prime_len) < 0) in eap_pwd_perform_confirm_exchange() 763 if (crypto_bignum_to_bin(data->server_scalar, cruft, order_len, in eap_pwd_perform_confirm_exchange() 779 if (crypto_bignum_to_bin(data->my_scalar, cruft, order_len, in eap_pwd_perform_confirm_exchange() 810 if (crypto_bignum_to_bin(data->k, cruft, prime_len, prime_len) < 0) in eap_pwd_perform_confirm_exchange() 825 if (crypto_bignum_to_bin(data->my_scalar, cruft, order_len, in eap_pwd_perform_confirm_exchange() 841 if (crypto_bignum_to_bin(data->server_scalar, cruft, order_len, in eap_pwd_perform_confirm_exchange()
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | crypto_wolfssl.c | 1374 int crypto_bignum_to_bin(const struct crypto_bignum *a, in crypto_bignum_to_bin() function 1884 if (crypto_bignum_to_bin((struct crypto_bignum *)p->x, x, in crypto_ec_point_to_bin() 1886 LOG_WOLF_ERROR_FUNC(crypto_bignum_to_bin, -1); in crypto_ec_point_to_bin() 1892 if (crypto_bignum_to_bin((struct crypto_bignum *) p->y, y, in crypto_ec_point_to_bin() 1894 LOG_WOLF_ERROR_FUNC(crypto_bignum_to_bin, -1); in crypto_ec_point_to_bin() 2209 ret = crypto_bignum_to_bin((struct crypto_bignum *) in crypto_ecdh_get_pubkey() 2215 ret = crypto_bignum_to_bin((struct crypto_bignum *) in crypto_ecdh_get_pubkey()
|
H A D | crypto.h | 552 int crypto_bignum_to_bin(const struct crypto_bignum *a,
|
H A D | crypto_openssl.c | 1945 int crypto_bignum_to_bin(const struct crypto_bignum *a, in crypto_bignum_to_bin() function 2471 ret = crypto_bignum_to_bin( in crypto_ec_point_to_bin() 2475 ret = crypto_bignum_to_bin( in crypto_ec_point_to_bin() 2825 res = crypto_bignum_to_bin((struct crypto_bignum *) x, in crypto_ecdh_get_pubkey() 2831 res = crypto_bignum_to_bin((struct crypto_bignum *) y, in crypto_ecdh_get_pubkey() 3995 if (crypto_bignum_to_bin((const struct crypto_bignum *) r, r_buf, in crypto_ec_key_sign_r_s() 3997 crypto_bignum_to_bin((const struct crypto_bignum *) s, s_buf, in crypto_ec_key_sign_r_s()
|