/external/wpa_supplicant_8/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 …]
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_pwd.c | 315 size_t prime_len, order_len; in eap_pwd_perform_commit_exchange() local 337 order_len = crypto_ec_order_len(data->grp->group); in eap_pwd_perform_commit_exchange() 349 if (payload_len != 2 * prime_len + order_len) { in eap_pwd_perform_commit_exchange() 353 (unsigned int) (2 * prime_len + order_len)); in eap_pwd_perform_commit_exchange() 385 exp_len = 1 + salt_len + 2 * prime_len + order_len; in eap_pwd_perform_commit_exchange() 422 exp_len = 1 + salt_len + 2 * prime_len + order_len; in eap_pwd_perform_commit_exchange() 457 exp_len = 1 + salt_len + 2 * prime_len + order_len; in eap_pwd_perform_commit_exchange() 493 if (payload_len != 2 * prime_len + order_len) { in eap_pwd_perform_commit_exchange() 497 (unsigned int) (2 * prime_len + order_len)); in eap_pwd_perform_commit_exchange() 610 data->outbuf = wpabuf_alloc(2 * prime_len + order_len); in eap_pwd_perform_commit_exchange() [all …]
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_pwd_common.c | 376 size_t prime_len, order_len; in compute_keys() local 379 order_len = crypto_ec_order_len(grp->group); in compute_keys() 396 crypto_bignum_to_bin(peer_scalar, cruft, order_len, order_len); in compute_keys() 397 eap_pwd_h_update(hash, cruft, order_len); in compute_keys() 398 crypto_bignum_to_bin(server_scalar, cruft, order_len, order_len); in compute_keys() 399 eap_pwd_h_update(hash, cruft, order_len); in compute_keys() 487 size_t order_len; in eap_pwd_get_scalar() local 490 order_len = crypto_ec_order_len(group->group); in eap_pwd_get_scalar() 493 scalar = crypto_bignum_init_set(buf, order_len); in eap_pwd_get_scalar()
|
/external/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()
|
/external/boringssl/src/fipstools/ |
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()
|
/external/wpa_supplicant_8/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()
|
D | crypto.h | 423 const u8 *order, size_t order_len,
|
D | crypto_libtomcrypt.c | 727 const u8 *order, size_t order_len, in crypto_dh_derive_secret() argument
|
D | crypto_openssl.c | 547 const u8 *order, size_t order_len, in crypto_dh_derive_secret() argument 567 q = BN_bin2bn(order, order_len, NULL); in crypto_dh_derive_secret()
|
D | crypto_wolfssl.c | 829 const u8 *order, size_t order_len, in crypto_dh_derive_secret() argument
|
/external/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()
|
/external/wpa_supplicant_8/src/common/ |
D | sae.c | 86 tmp->dh->order_len); in sae_set_group() 152 size_t order_len = (order_len_bits + 7) / 8; in sae_get_rand() local 154 if (order_len > sizeof(val)) in sae_get_rand() 158 if (iter++ > 100 || random_get_bytes(val, order_len) < 0) in sae_get_rand() 161 buf_shift_right(val, order_len, 8 - order_len_bits % 8); in sae_get_rand() 162 bn = crypto_bignum_init_set(val, order_len); in sae_get_rand() 174 os_memset(val, 0, order_len); in sae_get_rand()
|
/external/boringssl/src/include/openssl/ |
D | ecdsa.h | 156 OPENSSL_EXPORT size_t ECDSA_SIG_max_len(size_t order_len);
|
/external/boringssl/src/crypto/dsa/ |
D | dsa.c | 843 size_t order_len = BN_num_bytes(dsa->q); in DSA_size() local 846 size_t integer_len = 1 /* tag */ + der_len_len(order_len + 1) + 1 + order_len; in DSA_size() 847 if (integer_len < order_len) { in DSA_size()
|