Home
last modified time | relevance | path

Searched refs:order_len (Results 1 – 25 of 26) sorted by relevance

12

/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c240 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/
Deap_pwd.c362 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 …]
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c313 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()
/external/boringssl/src/util/fipstools/cavp/
Dcavp_ecdsa2_siggen_test.cc74 size_t order_len = in TestECDSA2SigGenImpl() local
77 std::vector<uint8_t> r_bytes(order_len), s_bytes(order_len); in TestECDSA2SigGenImpl()
Dcavp_ecdsa2_keypair_test.cc61 size_t order_len = in TestECDSA2KeyPair() local
64 std::vector<uint8_t> d_bytes(order_len); in TestECDSA2KeyPair()
/external/rust/crates/quiche/deps/boringssl/src/util/fipstools/cavp/
Dcavp_ecdsa2_siggen_test.cc74 size_t order_len = in TestECDSA2SigGenImpl() local
77 std::vector<uint8_t> r_bytes(order_len), s_bytes(order_len); in TestECDSA2SigGenImpl()
Dcavp_ecdsa2_keypair_test.cc61 size_t order_len = in TestECDSA2KeyPair() local
64 std::vector<uint8_t> d_bytes(order_len); in TestECDSA2KeyPair()
/external/boringssl/src/crypto/ecdsa_extra/
Decdsa_asn1.c221 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/rust/crates/quiche/deps/boringssl/src/crypto/ecdsa_extra/
Decdsa_asn1.c221 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/wpa_supplicant_8/src/crypto/
Dcrypto_internal-modexp.c43 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()
Ddh_groups.h19 size_t order_len; member
Ddh_groups.c1252 dh->order, dh->order_len, in dh_derive_shared()
Dcrypto_nettle.c334 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()
Dcrypto_gnutls.c313 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()
Dcrypto.h423 const u8 *order, size_t order_len,
Dcrypto_libtomcrypt.c727 const u8 *order, size_t order_len, in crypto_dh_derive_secret() argument
Dcrypto_openssl.c556 const u8 *order, size_t order_len, in crypto_dh_derive_secret() argument
576 q = BN_bin2bn(order, order_len, NULL); in crypto_dh_derive_secret()
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/
Decdsa.h162 OPENSSL_EXPORT size_t ECDSA_SIG_max_len(size_t order_len);
/external/boringssl/src/include/openssl/
Decdsa.h162 OPENSSL_EXPORT size_t ECDSA_SIG_max_len(size_t order_len);
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc288 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/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc288 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/rust/crates/quiche/deps/boringssl/src/crypto/dsa/
Ddsa.c858 size_t order_len = BN_num_bytes(dsa->q); in DSA_size() local
861 size_t integer_len = 1 /* tag */ + der_len_len(order_len + 1) + 1 + order_len; in DSA_size()
862 if (integer_len < order_len) { in DSA_size()
/external/boringssl/src/crypto/dsa/
Ddsa.c824 size_t order_len = BN_num_bytes(dsa->q); in DSA_size() local
827 size_t integer_len = 1 /* tag */ + der_len_len(order_len + 1) + 1 + order_len; in DSA_size()
828 if (integer_len < order_len) { in DSA_size()
/external/wpa_supplicant_8/src/common/
Dsae.c50 tmp->order_len = crypto_ec_order_len(tmp->ec); in sae_set_group()
75 tmp->order_len = tmp->dh->order_len; in sae_set_group()
77 tmp->dh->order_len); in sae_set_group()
986 order = crypto_bignum_init_set(dh->order, dh->order_len); in sae_derive_pt_ffc()
1225 order = crypto_bignum_init_set(pt->dh->order, pt->dh->order_len); in sae_derive_pwe_from_pt_ffc()
1610 crypto_bignum_to_bin(tmp, val, sizeof(val), sae->tmp->order_len); in sae_derive_keys()
1616 val, sae->tmp->order_len, in sae_derive_keys()
1621 val, sae->tmp->order_len, in sae_derive_keys()
1627 val, sae->tmp->order_len, in sae_derive_keys()
Dsae.h53 int order_len; member

12