Home
last modified time | relevance | path

Searched refs:psk_len (Results 1 – 25 of 51) sorted by relevance

123

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_gpsk_common.c110 const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_helper() argument
137 if (psk_len < mk_len) in eap_gpsk_derive_keys_helper()
140 data_len = 2 + psk_len + 6 + seed_len; in eap_gpsk_derive_keys_helper()
145 WPA_PUT_BE16(pos, psk_len); in eap_gpsk_derive_keys_helper()
147 os_memcpy(pos, psk, psk_len); in eap_gpsk_derive_keys_helper()
148 pos += psk_len; in eap_gpsk_derive_keys_helper()
189 static int eap_gpsk_derive_keys_aes(const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_aes() argument
218 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_aes()
225 static int eap_gpsk_derive_keys_sha256(const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_sha256() argument
252 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_sha256()
[all …]
Deap_gpsk_common.h49 int eap_gpsk_derive_keys(const u8 *psk, size_t psk_len, int vendor,
56 int eap_gpsk_derive_session_id(const u8 *psk, size_t psk_len, int vendor,
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_gpsk_common.c110 const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_helper() argument
137 if (psk_len < mk_len) in eap_gpsk_derive_keys_helper()
140 data_len = 2 + psk_len + 6 + seed_len; in eap_gpsk_derive_keys_helper()
145 WPA_PUT_BE16(pos, psk_len); in eap_gpsk_derive_keys_helper()
147 os_memcpy(pos, psk, psk_len); in eap_gpsk_derive_keys_helper()
148 pos += psk_len; in eap_gpsk_derive_keys_helper()
189 static int eap_gpsk_derive_keys_aes(const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_aes() argument
218 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_aes()
225 static int eap_gpsk_derive_keys_sha256(const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_sha256() argument
252 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_sha256()
[all …]
Deap_gpsk_common.h49 int eap_gpsk_derive_keys(const u8 *psk, size_t psk_len, int vendor,
56 int eap_gpsk_derive_session_id(const u8 *psk, size_t psk_len, int vendor,
/third_party/mbedtls/library/
Dssl_misc.h636 size_t psk_len; /*!< Length of PSK from callback */ member
1218 const unsigned char **psk, size_t *psk_len ) in mbedtls_ssl_get_psk() argument
1220 … if( ssl->MBEDTLS_PRIVATE(handshake)->psk != NULL && ssl->MBEDTLS_PRIVATE(handshake)->psk_len > 0 ) in mbedtls_ssl_get_psk()
1223 *psk_len = ssl->MBEDTLS_PRIVATE(handshake)->psk_len; in mbedtls_ssl_get_psk()
1227 ssl->MBEDTLS_PRIVATE(conf)->MBEDTLS_PRIVATE(psk_len) > 0 ) in mbedtls_ssl_get_psk()
1230 *psk_len = ssl->MBEDTLS_PRIVATE(conf)->MBEDTLS_PRIVATE(psk_len); in mbedtls_ssl_get_psk()
1236 *psk_len = 0; in mbedtls_ssl_get_psk()
Dssl_tls.c1462 size_t psk_len = 0; in mbedtls_ssl_psk_derive_premaster() local
1464 if( mbedtls_ssl_get_psk( ssl, &psk, &psk_len ) in mbedtls_ssl_psk_derive_premaster()
1488 MBEDTLS_PUT_UINT16_BE( psk_len, p, 0 ); in mbedtls_ssl_psk_derive_premaster()
1491 if( end < p || (size_t)( end - p ) < psk_len ) in mbedtls_ssl_psk_derive_premaster()
1494 memset( p, 0, psk_len ); in mbedtls_ssl_psk_derive_premaster()
1495 p += psk_len; in mbedtls_ssl_psk_derive_premaster()
1567 MBEDTLS_PUT_UINT16_BE( psk_len, p, 0 ); in mbedtls_ssl_psk_derive_premaster()
1570 if( end < p || (size_t)( end - p ) < psk_len ) in mbedtls_ssl_psk_derive_premaster()
1573 memcpy( p, psk, psk_len ); in mbedtls_ssl_psk_derive_premaster()
1574 p += psk_len; in mbedtls_ssl_psk_derive_premaster()
[all …]
Dssl_tls13_keys.h486 unsigned char const *psk, size_t psk_len,
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Deap_gpsk.c35 size_t psk_len; member
124 data->psk_len = password_len; in eap_gpsk_init()
136 os_memset(data->psk, 0, data->psk_len); in eap_gpsk_deinit()
364 if (eap_gpsk_derive_keys(data->psk, data->psk_len, in eap_gpsk_send_gpsk_2()
378 if (eap_gpsk_derive_session_id(data->psk, data->psk_len, in eap_gpsk_send_gpsk_2()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap_gpsk.c35 size_t psk_len; member
124 data->psk_len = password_len; in eap_gpsk_init()
136 os_memset(data->psk, 0, data->psk_len); in eap_gpsk_deinit()
364 if (eap_gpsk_derive_keys(data->psk, data->psk_len, in eap_gpsk_send_gpsk_2()
378 if (eap_gpsk_derive_session_id(data->psk, data->psk_len, in eap_gpsk_send_gpsk_2()
/third_party/libcoap/src/
Dcoap_tinydtls.c211 size_t psk_len = 0; in get_psk_info() local
271psk_len = coap_context->get_client_psk(coap_session, (const uint8_t*)id, id_len, (uint8_t*)result,… in get_psk_info()
272 if (!psk_len) { in get_psk_info()
285psk_len = coap_context->get_client_psk(coap_session, (const uint8_t*)id, id_len, psk, &identity_le… in get_psk_info()
286 if (!psk_len) { in get_psk_info()
291 return (int)psk_len; in get_psk_info()
Dcoap_gnutls.c518 size_t psk_len; in psk_client_callback() local
577 psk_len = c_session->context->get_client_psk(c_session, in psk_client_callback()
595 key->data = gnutls_malloc(psk_len); in psk_client_callback()
601 memcpy(key->data, psk, psk_len); in psk_client_callback()
602 key->size = psk_len; in psk_client_callback()
1798 size_t psk_len; in psk_server_callback() local
1843 psk_len = c_session->context->get_server_psk(c_session, in psk_server_callback()
1847 key->data = gnutls_malloc(psk_len); in psk_server_callback()
1848 memcpy(key->data, buf, psk_len); in psk_server_callback()
1849 key->size = psk_len; in psk_server_callback()
Dcoap_mbedtls.c217 size_t psk_len; in psk_server_callback() local
248 psk_len = c_session->context->get_server_psk(c_session, in psk_server_callback()
253 mbedtls_ssl_set_hs_psk(ssl, buf, psk_len); in psk_server_callback()
1064 size_t psk_len; in setup_client_ssl_session() local
1068 psk_len = c_session->context->get_client_psk(c_session, in setup_client_ssl_session()
1078 psk_len, (const unsigned char *)identity, in setup_client_ssl_session()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dwpa_auth_glue.c253 const u8 *prev_psk, size_t *psk_len, in hostapd_wpa_auth_get_psk() argument
262 if (psk_len) in hostapd_wpa_auth_get_psk()
263 *psk_len = PMK_LEN; in hostapd_wpa_auth_get_psk()
281 if (psk_len) in hostapd_wpa_auth_get_psk()
282 *psk_len = sta->owe_pmk_len; in hostapd_wpa_auth_get_psk()
290 if (psk_len) in hostapd_wpa_auth_get_psk()
291 *psk_len = sa->pmk_len; in hostapd_wpa_auth_get_psk()
Dwps_hostapd.c97 size_t psk_len) in hostapd_wps_new_psk_cb() argument
113 wpa_hexdump_key(MSG_DEBUG, "Per-device PSK", psk, psk_len); in hostapd_wps_new_psk_cb()
115 if (psk_len != PMK_LEN) { in hostapd_wps_new_psk_cb()
117 (unsigned long) psk_len); in hostapd_wps_new_psk_cb()
131 psk, psk_len); in hostapd_wps_new_psk_cb()
148 wpa_snprintf_hex(hex, sizeof(hex), psk, psk_len); in hostapd_wps_new_psk_cb()
/third_party/rust/crates/rust-openssl/openssl/src/ssl/
Dcallbacks.rs91 Ok(psk_len) => psk_len as u32, in raw_client_psk()
129 Ok(psk_len) => psk_len as u32, in raw_server_psk()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dwpa_auth_glue.c332 const u8 *prev_psk, size_t *psk_len, in hostapd_wpa_auth_get_psk() argument
341 if (psk_len) in hostapd_wpa_auth_get_psk()
342 *psk_len = PMK_LEN; in hostapd_wpa_auth_get_psk()
360 if (psk_len) in hostapd_wpa_auth_get_psk()
361 *psk_len = sta->owe_pmk_len; in hostapd_wpa_auth_get_psk()
369 if (psk_len) in hostapd_wpa_auth_get_psk()
370 *psk_len = sa->pmk_len; in hostapd_wpa_auth_get_psk()
Dwps_hostapd.c97 size_t psk_len) in hostapd_wps_new_psk_cb() argument
113 wpa_hexdump_key(MSG_DEBUG, "Per-device PSK", psk, psk_len); in hostapd_wps_new_psk_cb()
115 if (psk_len != PMK_LEN) { in hostapd_wps_new_psk_cb()
117 (unsigned long) psk_len); in hostapd_wps_new_psk_cb()
132 psk, psk_len); in hostapd_wps_new_psk_cb()
150 wpa_snprintf_hex(hex, sizeof(hex), psk, psk_len); in hostapd_wps_new_psk_cb()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dmesh_rsn.c79 size_t *psk_len, int *vlan_id) in auth_get_psk() argument
85 if (psk_len) in auth_get_psk()
86 *psk_len = PMK_LEN; in auth_get_psk()
Dibss_rsn.c263 size_t *psk_len, int *vlan_id) in auth_get_psk() argument
267 if (psk_len) in auth_get_psk()
268 *psk_len = PMK_LEN; in auth_get_psk()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dmesh_rsn.c79 size_t *psk_len, int *vlan_id) in auth_get_psk() argument
85 if (psk_len) in auth_get_psk()
86 *psk_len = PMK_LEN; in auth_get_psk()
Dibss_rsn.c277 size_t *psk_len, int *vlan_id) in auth_get_psk() argument
281 if (psk_len) in auth_get_psk()
282 *psk_len = PMK_LEN; in auth_get_psk()
/third_party/mbedtls/include/mbedtls/
Dssl.h1395 size_t MBEDTLS_PRIVATE(psk_len); /*!< The length of the raw pre-shared key.
3003 const unsigned char *psk, size_t psk_len,
3067 const unsigned char *psk, size_t psk_len );
/third_party/mbedtls/programs/ssl/
Dssl_server2.c1214 size_t psk_len ) in psa_setup_psk_key_slot() argument
1224 status = psa_import_key( &key_attributes, psk, psk_len, slot ); in psa_setup_psk_key_slot()
1297 size_t psk_len = 0; in main() local
2177 opt.psk, &psk_len ) != 0 ) in main()
2924 status = psa_setup_psk_key_slot( &psk_slot, alg, psk, psk_len ); in main()
2942 if( psk_len > 0 ) in main()
2944 ret = mbedtls_ssl_conf_psk( &conf, psk, psk_len, in main()
/third_party/openssl/test/
Dssl_old_test.c2970 unsigned int psk_len = 0; in psk_client_callback() local
2981 psk_len = ret; in psk_client_callback()
2983 return psk_len; in psk_client_callback()
2990 unsigned int psk_len = 0; in psk_server_callback() local
2996 psk_len = psk_key2bn(psk_key, psk, max_psk_len); in psk_server_callback()
2997 return psk_len; in psk_server_callback()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_i.h219 const u8 *p2p_dev_addr, const u8 *psk, size_t psk_len);

123