Home
last modified time | relevance | path

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

/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.c315 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/
Deap_pwd_common.c376 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/
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/boringssl/src/fipstools/
Dcavp_ecdsa2_siggen_test.cc73 size_t order_len = in TestECDSA2SigGenImpl() local
76 std::vector<uint8_t> r_bytes(order_len), s_bytes(order_len); in TestECDSA2SigGenImpl()
Dcavp_ecdsa2_keypair_test.cc60 size_t order_len = in TestECDSA2KeyPair() local
63 std::vector<uint8_t> d_bytes(order_len); in TestECDSA2KeyPair()
/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.c547 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()
Dcrypto_wolfssl.c829 const u8 *order, size_t order_len, in crypto_dh_derive_secret() argument
/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/wpa_supplicant_8/src/common/
Dsae.c86 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/
Decdsa.h156 OPENSSL_EXPORT size_t ECDSA_SIG_max_len(size_t order_len);
/external/boringssl/src/crypto/dsa/
Ddsa.c843 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()