Home
last modified time | relevance | path

Searched refs:pubkey_len (Results 1 – 12 of 12) sorted by relevance

/hostap-3.6.0/src/crypto/
Dcrypto_internal-modexp.c19 size_t pubkey_len, pad; in crypto_dh_init() local
28 pubkey_len = prime_len; in crypto_dh_init()
30 pubkey, &pubkey_len) < 0) in crypto_dh_init()
32 if (pubkey_len < prime_len) { in crypto_dh_init()
33 pad = prime_len - pubkey_len; in crypto_dh_init()
34 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init()
45 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument
51 if (pubkey_len > prime_len || in crypto_dh_derive_secret()
52 (pubkey_len == prime_len && in crypto_dh_derive_secret()
57 if (!pub || bignum_set_unsigned_bin(pub, pubkey, pubkey_len) < 0 || in crypto_dh_derive_secret()
[all …]
Dcrypto_nettle.c310 size_t pubkey_len, pad; in crypto_dh_init() local
319 pubkey_len = prime_len; in crypto_dh_init()
321 pubkey, &pubkey_len) < 0) in crypto_dh_init()
323 if (pubkey_len < prime_len) { in crypto_dh_init()
324 pad = prime_len - pubkey_len; in crypto_dh_init()
325 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init()
336 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument
342 if (pubkey_len > prime_len || in crypto_dh_derive_secret()
343 (pubkey_len == prime_len && in crypto_dh_derive_secret()
348 mpz_import(pub, pubkey_len, 1, 1, 1, 0, pubkey); in crypto_dh_derive_secret()
[all …]
Dcrypto_gnutls.c289 size_t pubkey_len, pad; in crypto_dh_init() local
298 pubkey_len = prime_len; in crypto_dh_init()
300 pubkey, &pubkey_len) < 0) in crypto_dh_init()
302 if (pubkey_len < prime_len) { in crypto_dh_init()
303 pad = prime_len - pubkey_len; in crypto_dh_init()
304 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init()
315 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument
321 if (pubkey_len > prime_len || in crypto_dh_derive_secret()
322 (pubkey_len == prime_len && in crypto_dh_derive_secret()
326 if (gcry_mpi_scan(&pub, GCRYMPI_FMT_USG, pubkey, pubkey_len, NULL) != in crypto_dh_derive_secret()
[all …]
Dcrypto_libtomcrypt.c703 size_t pubkey_len, pad; in crypto_dh_init() local
712 pubkey_len = prime_len; in crypto_dh_init()
714 pubkey, &pubkey_len) < 0) in crypto_dh_init()
716 if (pubkey_len < prime_len) { in crypto_dh_init()
717 pad = prime_len - pubkey_len; in crypto_dh_init()
718 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init()
729 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument
733 return crypto_mod_exp(pubkey, pubkey_len, privkey, privkey_len, in crypto_dh_derive_secret()
Dcrypto_openssl.c596 size_t pubkey_len, pad; in crypto_dh_init() local
605 pubkey_len = prime_len; in crypto_dh_init()
607 pubkey, &pubkey_len) < 0) in crypto_dh_init()
609 if (pubkey_len < prime_len) { in crypto_dh_init()
610 pad = prime_len - pubkey_len; in crypto_dh_init()
611 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init()
622 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument
628 pub = BN_bin2bn(pubkey, pubkey_len, NULL); in crypto_dh_derive_secret()
653 res = crypto_mod_exp(pubkey, pubkey_len, privkey, privkey_len, in crypto_dh_derive_secret()
Dcrypto.h425 const u8 *pubkey, size_t pubkey_len,
Dcrypto_wolfssl.c835 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument
851 pubkey_len) != 0) in crypto_dh_derive_secret()
/hostap-3.6.0/src/common/
Dsae_pk.c547 const u8 *pubkey, size_t pubkey_len, u8 *hash) in sae_pk_hash_sig_data() argument
556 sig_data = wpabuf_alloc(tmp->prime_len * 6 + m_len + pubkey_len + in sae_pk_hash_sig_data()
580 wpabuf_put_data(sig_data, pubkey, pubkey_len); in sae_pk_hash_sig_data()
Dwpa_common.h545 u8 pubkey_len; member
Dwpa_common.c3701 pasn_params->pubkey_len = *pos++; in wpa_pasn_parse_parameter_ie()
3704 len -= pasn_params->pubkey_len; in wpa_pasn_parse_parameter_ie()
3705 pos += pasn_params->pubkey_len; in wpa_pasn_parse_parameter_ie()
/hostap-3.6.0/wpa_supplicant/
Dpasn_supplicant.c1471 if (!pasn_params.pubkey || !pasn_params.pubkey_len) { in wpas_pasn_auth_rx()
1490 pasn_params.pubkey_len - 1); in wpas_pasn_auth_rx()
/hostap-3.6.0/src/ap/
Dieee802_11.c3200 if (!pasn_params.pubkey || !pasn_params.pubkey_len) { in handle_auth_pasn_1()
3249 pasn_params.pubkey_len - 1); in handle_auth_pasn_1()
3438 if (pasn_params.pubkey || pasn_params.pubkey_len) { in handle_auth_pasn_3()