Home
last modified time | relevance | path

Searched refs:shared_secret (Results 1 – 25 of 50) sorted by relevance

12

/third_party/libwebsockets/lib/jose/jwe/
Djwe-ecdh-es-aeskw.c202 uint8_t shared_secret[LWS_JWE_LIMIT_KEY_ELEMENT_BYTES], in lws_jwe_encrypt_ecdh() local
204 int m, n, ret = -1, ot = *temp_len, ss_len = sizeof(shared_secret), in lws_jwe_encrypt_ecdh()
239 if (lws_genecdh_compute_shared_secret(&ecctx, shared_secret, &ss_len)) { in lws_jwe_encrypt_ecdh()
268 derived, shared_secret, ss_len)) { in lws_jwe_encrypt_ecdh()
371 lws_explicit_bzero(shared_secret, (unsigned int)ekbytes); in lws_jwe_encrypt_ecdh()
455 uint8_t shared_secret[LWS_JWE_LIMIT_KEY_ELEMENT_BYTES], in lws_jwe_auth_and_decrypt_ecdh() local
460 int n, ret = -1, ss_len = sizeof(shared_secret); in lws_jwe_auth_and_decrypt_ecdh()
505 if (lws_genecdh_compute_shared_secret(&ecctx, shared_secret, &ss_len)) { in lws_jwe_auth_and_decrypt_ecdh()
526 derived, shared_secret, ss_len)) { in lws_jwe_auth_and_decrypt_ecdh()
568 (uint8_t *)shared_secret, in lws_jwe_auth_and_decrypt_ecdh()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/radius/
Dradius_client.c67 const u8 *shared_secret,
135 const u8 *shared_secret; member
285 const u8 *shared_secret, in radius_client_register() argument
453 radius_msg_finish_acct(entry->msg, entry->shared_secret, in radius_client_retransmit()
668 const u8 *shared_secret, in radius_client_list_add() argument
691 entry->shared_secret = shared_secret; in radius_client_list_add()
751 const u8 *shared_secret; in radius_client_send() local
762 conf->acct_server->shared_secret == NULL) { in radius_client_send()
769 shared_secret = conf->acct_server->shared_secret; in radius_client_send()
771 radius_msg_finish_acct(msg, shared_secret, shared_secret_len); in radius_client_send()
[all …]
Dradius_das.c21 u8 *shared_secret; member
432 if (radius_msg_verify_das_req(msg, das->shared_secret, in radius_das_receive()
486 if (radius_msg_finish_das_resp(reply, das->shared_secret, in radius_das_receive()
541 if (conf->port == 0 || conf->shared_secret == NULL || in radius_das_init()
560 das->shared_secret = os_memdup(conf->shared_secret, in radius_das_init()
562 if (das->shared_secret == NULL) { in radius_das_init()
596 os_free(das->shared_secret); in radius_das_deinit()
Dradius_client.h41 u8 *shared_secret; member
241 const u8 *shared_secret, size_t shared_secret_len,
Dradius_server.c114 char *shared_secret; member
1140 (u8 *) client->shared_secret, in radius_server_encapsulate_eap()
1309 if (radius_msg_finish_srv(msg, (u8 *) client->shared_secret, in radius_server_encapsulate_eap()
1355 (u8 *) client->shared_secret, in radius_server_macacl()
1393 if (radius_msg_finish_srv(msg, (u8 *) client->shared_secret, in radius_server_macacl()
1438 if (radius_msg_finish_srv(msg, (u8 *) client->shared_secret, in radius_server_reject()
1732 if (radius_msg_verify(msg, (const u8 *) client->shared_secret, in radius_server_receive_disconnect_resp()
1776 if (radius_msg_verify(msg, (const u8 *) client->shared_secret, in radius_server_receive_coa_resp()
1931 if (radius_msg_verify_msg_auth(msg, (u8 *) client->shared_secret, in radius_server_receive_auth()
2043 if (radius_msg_verify_acct_req(msg, (u8 *) client->shared_secret, in radius_server_receive_acct()
[all …]
Dradius_das.h46 const u8 *shared_secret; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/radius/
Dradius_client.c68 const u8 *shared_secret,
136 const u8 *shared_secret; member
286 const u8 *shared_secret, in radius_client_register() argument
454 radius_msg_finish_acct(entry->msg, entry->shared_secret, in radius_client_retransmit()
669 const u8 *shared_secret, in radius_client_list_add() argument
692 entry->shared_secret = shared_secret; in radius_client_list_add()
752 const u8 *shared_secret; in radius_client_send() local
763 conf->acct_server->shared_secret == NULL) { in radius_client_send()
770 shared_secret = conf->acct_server->shared_secret; in radius_client_send()
772 radius_msg_finish_acct(msg, shared_secret, shared_secret_len); in radius_client_send()
[all …]
Dradius_das.c21 u8 *shared_secret; member
432 if (radius_msg_verify_das_req(msg, das->shared_secret, in radius_das_receive()
486 if (radius_msg_finish_das_resp(reply, das->shared_secret, in radius_das_receive()
541 if (conf->port == 0 || conf->shared_secret == NULL || in radius_das_init()
560 das->shared_secret = os_memdup(conf->shared_secret, in radius_das_init()
562 if (das->shared_secret == NULL) { in radius_das_init()
596 os_free(das->shared_secret); in radius_das_deinit()
Dradius_client.h41 u8 *shared_secret; member
246 const u8 *shared_secret, size_t shared_secret_len,
Dradius_server.c109 char *shared_secret; member
973 (u8 *) client->shared_secret, in radius_server_encapsulate_eap()
1142 if (radius_msg_finish_srv(msg, (u8 *) client->shared_secret, in radius_server_encapsulate_eap()
1188 (u8 *) client->shared_secret, in radius_server_macacl()
1226 if (radius_msg_finish_srv(msg, (u8 *) client->shared_secret, in radius_server_macacl()
1271 if (radius_msg_finish_srv(msg, (u8 *) client->shared_secret, in radius_server_reject()
1565 if (radius_msg_verify(msg, (const u8 *) client->shared_secret, in radius_server_receive_disconnect_resp()
1609 if (radius_msg_verify(msg, (const u8 *) client->shared_secret, in radius_server_receive_coa_resp()
1764 if (radius_msg_verify_msg_auth(msg, (u8 *) client->shared_secret, in radius_server_receive_auth()
1876 if (radius_msg_verify_acct_req(msg, (u8 *) client->shared_secret, in radius_server_receive_acct()
[all …]
Dradius_das.h46 const u8 *shared_secret; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dieee802_11_auth.c131 hapd->conf->radius->auth_server->shared_secret, in hostapd_radius_acl_query()
373 const u8 *shared_secret, in decode_tunnel_passwords() argument
389 msg, &passphraselen, shared_secret, shared_secret_len, in decode_tunnel_passwords()
450 const u8 *shared_secret, size_t shared_secret_len, in hostapd_acl_recv_radius() argument
473 if (radius_msg_verify(msg, shared_secret, shared_secret_len, req, 0)) { in hostapd_acl_recv_radius()
521 decode_tunnel_passwords(hapd, shared_secret, shared_secret_len, in hostapd_acl_recv_radius()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dieee802_11_auth.c172 hapd->conf->radius->auth_server->shared_secret, in hostapd_radius_acl_query()
438 const u8 *shared_secret, in decode_tunnel_passwords() argument
454 msg, &passphraselen, shared_secret, shared_secret_len, in decode_tunnel_passwords()
515 const u8 *shared_secret, size_t shared_secret_len, in hostapd_acl_recv_radius() argument
537 if (radius_msg_verify(msg, shared_secret, shared_secret_len, req, 0)) { in hostapd_acl_recv_radius()
584 decode_tunnel_passwords(hapd, shared_secret, shared_secret_len, in hostapd_acl_recv_radius()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Dikev2.c28 os_free(data->shared_secret); in ikev2_initiator_deinit()
618 &data->keys, 0, data->shared_secret, in ikev2_process_auth_secret()
1068 &data->keys, 1, data->shared_secret, in ikev2_build_auth()
1140 os_free(data->shared_secret); in ikev2_build_sa_auth()
1141 data->shared_secret = os_malloc(16); in ikev2_build_sa_auth()
1142 if (data->shared_secret == NULL) in ikev2_build_sa_auth()
1145 if (random_get_bytes(data->shared_secret, 16)) in ikev2_build_sa_auth()
1148 os_free(data->shared_secret); in ikev2_build_sa_auth()
1149 data->shared_secret = os_memdup(secret, secret_len); in ikev2_build_sa_auth()
1150 if (data->shared_secret == NULL) in ikev2_build_sa_auth()
Dikev2.h43 u8 *shared_secret; member
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
Dikev2.c28 os_free(data->shared_secret); in ikev2_initiator_deinit()
618 &data->keys, 0, data->shared_secret, in ikev2_process_auth_secret()
1068 &data->keys, 1, data->shared_secret, in ikev2_build_auth()
1140 os_free(data->shared_secret); in ikev2_build_sa_auth()
1141 data->shared_secret = os_malloc(16); in ikev2_build_sa_auth()
1142 if (data->shared_secret == NULL) in ikev2_build_sa_auth()
1145 if (random_get_bytes(data->shared_secret, 16)) in ikev2_build_sa_auth()
1148 os_free(data->shared_secret); in ikev2_build_sa_auth()
1149 data->shared_secret = os_memdup(secret, secret_len); in ikev2_build_sa_auth()
1150 if (data->shared_secret == NULL) in ikev2_build_sa_auth()
Dikev2.h43 u8 *shared_secret; member
/third_party/ffmpeg/libavformat/tests/
Drtmpdh.c99 static const uint8_t shared_secret[] = { variable
141 if (memcmp(shared_secret, sharedkey_test, sizeof(sharedkey_test))) { in test_ref_data()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_eke_common.c413 NULL, 0, sess->shared_secret) < 0) in eap_eke_shared_secret()
416 sess->shared_secret, sess->auth_len); in eap_eke_shared_secret()
460 if (eap_eke_prfplus(sess->prf, sess->shared_secret, sess->prf_len, in eap_eke_derive_ke_ki()
508 if (eap_eke_prfplus(sess->prf, sess->shared_secret, sess->prf_len, in eap_eke_derive_ka()
553 if (eap_eke_prfplus(sess->prf, sess->shared_secret, sess->prf_len, in eap_eke_derive_msk()
724 os_memset(sess->shared_secret, 0, EAP_EKE_MAX_HASH_LEN); in eap_eke_session_clean()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_eke_common.c413 NULL, 0, sess->shared_secret) < 0) in eap_eke_shared_secret()
416 sess->shared_secret, sess->auth_len); in eap_eke_shared_secret()
460 if (eap_eke_prfplus(sess->prf, sess->shared_secret, sess->prf_len, in eap_eke_derive_ke_ki()
508 if (eap_eke_prfplus(sess->prf, sess->shared_secret, sess->prf_len, in eap_eke_derive_ka()
553 if (eap_eke_prfplus(sess->prf, sess->shared_secret, sess->prf_len, in eap_eke_derive_msk()
724 os_memset(sess->shared_secret, 0, EAP_EKE_MAX_HASH_LEN); in eap_eke_session_clean()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Deapol_test.c671 os_free(e->radius_conf->auth_server->shared_secret); in test_eapol_clean()
843 const u8 *shared_secret, in ieee802_1x_get_keys() argument
850 keys = radius_msg_get_ms_keys(msg, req, shared_secret, in ieee802_1x_get_keys()
854 keys = radius_msg_get_cisco_keys(msg, req, shared_secret, in ieee802_1x_get_keys()
901 const u8 *shared_secret, size_t shared_secret_len, in ieee802_1x_receive_auth() argument
916 } else if (radius_msg_verify(msg, shared_secret, shared_secret_len, in ieee802_1x_receive_auth()
939 ieee802_1x_get_keys(e, msg, req, shared_secret, in ieee802_1x_receive_auth()
1037 as->shared_secret = (u8 *) os_strdup(secret); in wpa_init_conf()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Deapol_test.c671 os_free(e->radius_conf->auth_server->shared_secret); in test_eapol_clean()
841 const u8 *shared_secret, in ieee802_1x_get_keys() argument
848 keys = radius_msg_get_ms_keys(msg, req, shared_secret, in ieee802_1x_get_keys()
852 keys = radius_msg_get_cisco_keys(msg, req, shared_secret, in ieee802_1x_get_keys()
899 const u8 *shared_secret, size_t shared_secret_len, in ieee802_1x_receive_auth() argument
914 } else if (radius_msg_verify(msg, shared_secret, shared_secret_len, in ieee802_1x_receive_auth()
937 ieee802_1x_get_keys(e, msg, req, shared_secret, in ieee802_1x_receive_auth()
1036 as->shared_secret = (u8 *) os_strdup(secret); in wpa_init_conf()
/third_party/mbedtls/tests/suites/
Dtest_suite_ecdh.function375 unsigned char shared_secret[MBEDTLS_ECP_MAX_BYTES];
408 shared_secret, sizeof( shared_secret ),
411 TEST_ASSERT( memcmp( expected->x, shared_secret,
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Dikev2.h44 u8 *shared_secret; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Dikev2.h44 u8 *shared_secret; member

12