/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/ |
D | eap_server_pwd.c | 240 size_t prime_len, order_len; in eap_pwd_build_commit_req() local 251 order_len = crypto_ec_order_len(data->grp->group); in eap_pwd_build_commit_req() 282 data->outbuf = wpabuf_alloc(2 * prime_len + order_len + in eap_pwd_build_commit_req() 295 scalar = wpabuf_put(data->outbuf, order_len); in eap_pwd_build_commit_req() 296 crypto_bignum_to_bin(data->my_scalar, scalar, order_len, order_len); in eap_pwd_build_commit_req() 317 size_t prime_len, order_len; in eap_pwd_build_confirm_req() local 328 order_len = crypto_ec_order_len(data->grp->group); in eap_pwd_build_confirm_req() 365 crypto_bignum_to_bin(data->my_scalar, cruft, order_len, order_len); in eap_pwd_build_confirm_req() 366 eap_pwd_h_update(hash, cruft, order_len); in eap_pwd_build_confirm_req() 378 crypto_bignum_to_bin(data->peer_scalar, cruft, order_len, order_len); in eap_pwd_build_confirm_req() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/ |
D | eap_server_pwd.c | 240 size_t prime_len, order_len; in eap_pwd_build_commit_req() local 251 order_len = crypto_ec_order_len(data->grp->group); in eap_pwd_build_commit_req() 282 data->outbuf = wpabuf_alloc(2 * prime_len + order_len + in eap_pwd_build_commit_req() 295 scalar = wpabuf_put(data->outbuf, order_len); in eap_pwd_build_commit_req() 296 crypto_bignum_to_bin(data->my_scalar, scalar, order_len, order_len); in eap_pwd_build_commit_req() 317 size_t prime_len, order_len; in eap_pwd_build_confirm_req() local 328 order_len = crypto_ec_order_len(data->grp->group); in eap_pwd_build_confirm_req() 365 crypto_bignum_to_bin(data->my_scalar, cruft, order_len, order_len); in eap_pwd_build_confirm_req() 366 eap_pwd_h_update(hash, cruft, order_len); in eap_pwd_build_confirm_req() 378 crypto_bignum_to_bin(data->peer_scalar, cruft, order_len, order_len); in eap_pwd_build_confirm_req() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
D | eap_pwd.c | 362 size_t prime_len, order_len; in eap_pwd_perform_commit_exchange() local 384 order_len = crypto_ec_order_len(data->grp->group); in eap_pwd_perform_commit_exchange() 396 if (payload_len != 2 * prime_len + order_len) { in eap_pwd_perform_commit_exchange() 400 (unsigned int) (2 * prime_len + order_len)); in eap_pwd_perform_commit_exchange() 432 exp_len = 1 + salt_len + 2 * prime_len + order_len; in eap_pwd_perform_commit_exchange() 469 exp_len = 1 + salt_len + 2 * prime_len + order_len; in eap_pwd_perform_commit_exchange() 504 exp_len = 1 + salt_len + 2 * prime_len + order_len; in eap_pwd_perform_commit_exchange() 540 if (payload_len != 2 * prime_len + order_len) { in eap_pwd_perform_commit_exchange() 544 (unsigned int) (2 * prime_len + order_len)); in eap_pwd_perform_commit_exchange() 657 data->outbuf = wpabuf_alloc(2 * prime_len + order_len); in eap_pwd_perform_commit_exchange() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
D | eap_pwd.c | 362 size_t prime_len, order_len; in eap_pwd_perform_commit_exchange() local 384 order_len = crypto_ec_order_len(data->grp->group); in eap_pwd_perform_commit_exchange() 396 if (payload_len != 2 * prime_len + order_len) { in eap_pwd_perform_commit_exchange() 400 (unsigned int) (2 * prime_len + order_len)); in eap_pwd_perform_commit_exchange() 432 exp_len = 1 + salt_len + 2 * prime_len + order_len; in eap_pwd_perform_commit_exchange() 469 exp_len = 1 + salt_len + 2 * prime_len + order_len; in eap_pwd_perform_commit_exchange() 504 exp_len = 1 + salt_len + 2 * prime_len + order_len; in eap_pwd_perform_commit_exchange() 540 if (payload_len != 2 * prime_len + order_len) { in eap_pwd_perform_commit_exchange() 544 (unsigned int) (2 * prime_len + order_len)); in eap_pwd_perform_commit_exchange() 657 data->outbuf = wpabuf_alloc(2 * prime_len + order_len); in eap_pwd_perform_commit_exchange() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/ |
D | eap_pwd_common.c | 313 size_t prime_len, order_len; in compute_keys() local 316 order_len = crypto_ec_order_len(grp->group); in compute_keys() 333 crypto_bignum_to_bin(peer_scalar, cruft, order_len, order_len); in compute_keys() 334 eap_pwd_h_update(hash, cruft, order_len); in compute_keys() 335 crypto_bignum_to_bin(server_scalar, cruft, order_len, order_len); in compute_keys() 336 eap_pwd_h_update(hash, cruft, order_len); in compute_keys() 424 size_t order_len; in eap_pwd_get_scalar() local 427 order_len = crypto_ec_order_len(group->group); in eap_pwd_get_scalar() 430 scalar = crypto_bignum_init_set(buf, order_len); in eap_pwd_get_scalar()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/ |
D | eap_pwd_common.c | 313 size_t prime_len, order_len; in compute_keys() local 316 order_len = crypto_ec_order_len(grp->group); in compute_keys() 333 crypto_bignum_to_bin(peer_scalar, cruft, order_len, order_len); in compute_keys() 334 eap_pwd_h_update(hash, cruft, order_len); in compute_keys() 335 crypto_bignum_to_bin(server_scalar, cruft, order_len, order_len); in compute_keys() 336 eap_pwd_h_update(hash, cruft, order_len); in compute_keys() 424 size_t order_len; in eap_pwd_get_scalar() local 427 order_len = crypto_ec_order_len(group->group); in eap_pwd_get_scalar() 430 scalar = crypto_bignum_init_set(buf, order_len); in eap_pwd_get_scalar()
|
/third_party/boringssl/src/crypto/ecdsa_extra/ |
D | ecdsa_asn1.c | 221 size_t ECDSA_SIG_max_len(size_t order_len) { in ECDSA_SIG_max_len() argument 224 size_t integer_len = 1 /* tag */ + der_len_len(order_len + 1) + 1 + order_len; in ECDSA_SIG_max_len() 225 if (integer_len < order_len) { in ECDSA_SIG_max_len()
|
/third_party/boringssl/src/util/fipstools/cavp/ |
D | cavp_ecdsa2_siggen_test.cc | 73 size_t order_len = in TestECDSA2SigGenImpl() local 76 std::vector<uint8_t> r_bytes(order_len), s_bytes(order_len); in TestECDSA2SigGenImpl()
|
D | cavp_ecdsa2_keypair_test.cc | 60 size_t order_len = in TestECDSA2KeyPair() local 63 std::vector<uint8_t> d_bytes(order_len); in TestECDSA2KeyPair()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_internal-modexp.c | 43 const u8 *order, size_t order_len, in crypto_dh_derive_secret() argument 71 bignum_set_unsigned_bin(q, order, order_len) < 0 || in crypto_dh_derive_secret()
|
D | dh_groups.h | 19 size_t order_len; member
|
D | dh_groups.c | 1252 dh->order, dh->order_len, in dh_derive_shared()
|
D | crypto_nettle.c | 334 const u8 *order, size_t order_len, in crypto_dh_derive_secret() argument 359 mpz_import(q, order_len, 1, 1, 1, 0, order); in crypto_dh_derive_secret()
|
D | crypto_gnutls.c | 313 const u8 *order, size_t order_len, in crypto_dh_derive_secret() argument 340 gcry_mpi_scan(&q, GCRYMPI_FMT_USG, order, order_len, in crypto_dh_derive_secret()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_internal-modexp.c | 43 const u8 *order, size_t order_len, in crypto_dh_derive_secret() argument 71 bignum_set_unsigned_bin(q, order, order_len) < 0 || in crypto_dh_derive_secret()
|
D | dh_groups.h | 19 size_t order_len; member
|
D | dh_groups.c | 1252 dh->order, dh->order_len, in dh_derive_shared()
|
D | crypto_nettle.c | 334 const u8 *order, size_t order_len, in crypto_dh_derive_secret() argument 359 mpz_import(q, order_len, 1, 1, 1, 0, order); in crypto_dh_derive_secret()
|
/third_party/boringssl/src/include/openssl/ |
D | ecdsa.h | 156 OPENSSL_EXPORT size_t ECDSA_SIG_max_len(size_t order_len);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | sae.h | 36 int order_len; member
|
D | sae.c | 48 tmp->order_len = crypto_ec_order_len(tmp->ec); in sae_set_group() 73 tmp->order_len = tmp->dh->order_len; in sae_set_group() 75 tmp->dh->order_len); in sae_set_group() 720 crypto_bignum_to_bin(tmp, val, sizeof(val), sae->tmp->order_len); in sae_derive_keys() 723 val, sae->tmp->order_len, keys, sizeof(keys)) < 0) in sae_derive_keys()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | sae.h | 36 int order_len; member
|
D | sae.c | 48 tmp->order_len = crypto_ec_order_len(tmp->ec); in sae_set_group() 73 tmp->order_len = tmp->dh->order_len; in sae_set_group() 75 tmp->dh->order_len); in sae_set_group() 720 crypto_bignum_to_bin(tmp, val, sizeof(val), sae->tmp->order_len); in sae_derive_keys() 723 val, sae->tmp->order_len, keys, sizeof(keys)) < 0) in sae_derive_keys()
|
/third_party/boringssl/src/crypto/fipsmodule/ecdsa/ |
D | ecdsa_test.cc | 288 size_t order_len = BitsToBytes(bits); in TEST() local 293 std::vector<uint8_t> bytes(order_len, 0xff); in TEST() 302 EXPECT_EQ(der_len, ECDSA_SIG_max_len(order_len)); in TEST()
|
/third_party/boringssl/src/crypto/dsa/ |
D | dsa.c | 848 size_t order_len = BN_num_bytes(dsa->q); in DSA_size() local 851 size_t integer_len = 1 /* tag */ + der_len_len(order_len + 1) + 1 + order_len; in DSA_size() 852 if (integer_len < order_len) { in DSA_size()
|