/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
H A D | dpp_auth.c | 42 static void dpp_auth_success(struct dpp_authentication *auth) in dpp_auth_success() argument 46 os_memset(auth->Mx, 0, sizeof(auth->Mx)); in dpp_auth_success() 47 auth->Mx_len = 0; in dpp_auth_success() 48 os_memset(auth->Nx, 0, sizeof(auth->Nx)); in dpp_auth_success() 49 auth->Nx_len = 0; in dpp_auth_success() 50 os_memset(auth->Lx, 0, sizeof(auth->Lx)); in dpp_auth_success() 51 auth in dpp_auth_success() 59 dpp_auth_build_req(struct dpp_authentication *auth, const struct wpabuf *pi, size_t nonce_len, const u8 *r_pubkey_hash, const u8 *i_pubkey_hash, unsigned int neg_freq) dpp_auth_build_req() argument 233 dpp_auth_build_resp(struct dpp_authentication *auth, enum dpp_status_error status, const struct wpabuf *pr, size_t nonce_len, const u8 *r_pubkey_hash, const u8 *i_pubkey_hash, const u8 *r_nonce, const u8 *i_nonce, const u8 *wrapped_r_auth, size_t wrapped_r_auth_len, const u8 *siv_key) dpp_auth_build_resp() argument 418 dpp_auth_build_resp_ok(struct dpp_authentication *auth) dpp_auth_build_resp_ok() argument 602 dpp_auth_build_resp_status(struct dpp_authentication *auth, enum dpp_status_error status) dpp_auth_build_resp_status() argument 684 struct dpp_authentication *auth = NULL; dpp_auth_req_rx() local 936 dpp_notify_new_qr_code(struct dpp_authentication *auth, struct dpp_bootstrap_info *peer_bi) dpp_notify_new_qr_code() argument 956 dpp_auth_build_conf(struct dpp_authentication *auth, enum dpp_status_error status) dpp_auth_build_conf() argument 1134 dpp_autogen_bootstrap_key(struct dpp_authentication *auth) dpp_autogen_bootstrap_key() argument 1169 struct dpp_authentication *auth; dpp_auth_init() local 1305 dpp_auth_resp_rx_status(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len, const u8 *wrapped_data, u16 wrapped_data_len, enum dpp_status_error status) dpp_auth_resp_rx_status() argument 1403 dpp_auth_resp_rx(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len) dpp_auth_resp_rx() argument 1743 dpp_auth_conf_rx_failure(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len, const u8 *wrapped_data, u16 wrapped_data_len, enum dpp_status_error status) dpp_auth_conf_rx_failure() argument 1814 dpp_auth_conf_rx(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len) dpp_auth_conf_rx() argument [all...] |
H A D | dpp_reconfig.c | 130 static struct wpabuf * dpp_reconfig_build_req(struct dpp_authentication *auth) in dpp_reconfig_build_req() argument 136 attr_len = 4 + 1 + 4 + 1 + 4 + os_strlen(auth->conf->connector) + in dpp_reconfig_build_req() 137 4 + auth->curve->nonce_len; in dpp_reconfig_build_req() 145 wpabuf_put_u8(msg, auth->transaction_id); in dpp_reconfig_build_req() 154 wpabuf_put_le16(msg, os_strlen(auth->conf->connector)); in dpp_reconfig_build_req() 155 wpabuf_put_str(msg, auth->conf->connector); in dpp_reconfig_build_req() 159 wpabuf_put_le16(msg, auth->curve->nonce_len); in dpp_reconfig_build_req() 160 wpabuf_put_data(msg, auth->c_nonce, auth->curve->nonce_len); in dpp_reconfig_build_req() 227 struct dpp_authentication *auth; in dpp_reconfig_init() local 312 dpp_reconfig_build_resp(struct dpp_authentication *auth, const char *own_connector, struct wpabuf *conn_status) dpp_reconfig_build_resp() argument 429 struct dpp_authentication *auth = NULL; dpp_reconfig_auth_req_rx() local 557 dpp_reconfig_build_conf(struct dpp_authentication *auth) dpp_reconfig_build_conf() argument 648 dpp_reconfig_auth_resp_rx(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len) dpp_reconfig_auth_resp_rx() argument 833 dpp_reconfig_auth_conf_rx(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len) dpp_reconfig_auth_conf_rx() argument [all...] |
H A D | dpp.c | 42 void dpp_auth_fail(struct dpp_authentication *auth, const char *txt) in dpp_auth_fail() argument 44 wpa_msg(auth->msg_ctx, MSG_INFO, DPP_EVENT_FAIL "%s", txt); in dpp_auth_fail() 491 static int dpp_channel_intersect(struct dpp_authentication *auth, in dpp_channel_intersect() argument 495 struct dpp_bootstrap_info *peer_bi = auth->peer_bi; in dpp_channel_intersect() 500 if (freq_included(auth->freq, auth->num_freq, freq)) in dpp_channel_intersect() 503 auth->freq[auth->num_freq++] = freq; in dpp_channel_intersect() 505 if (!auth->num_freq) { in dpp_channel_intersect() 510 auth in dpp_channel_intersect() 515 dpp_channel_local_list(struct dpp_authentication *auth, struct hostapd_hw_modes *own_modes, u16 num_modes) dpp_channel_local_list() argument 555 dpp_prepare_channel_list(struct dpp_authentication *auth, unsigned int neg_freq, struct hostapd_hw_modes *own_modes, u16 num_modes) dpp_prepare_channel_list() argument 645 struct dpp_authentication *auth; dpp_alloc_auth() local 657 dpp_build_conf_req_attr(struct dpp_authentication *auth, const char *json) dpp_build_conf_req_attr() argument 784 dpp_build_conf_req(struct dpp_authentication *auth, const char *json) dpp_build_conf_req() argument 811 dpp_build_conf_req_helper(struct dpp_authentication *auth, const char *name, enum dpp_netrole netrole, const char *mud_url, int *opclasses) dpp_build_conf_req_helper() argument 994 dpp_configuration_parse_helper(struct dpp_authentication *auth, const char *cmd, int idx) dpp_configuration_parse_helper() argument 1137 dpp_configuration_parse(struct dpp_authentication *auth, const char *cmd) dpp_configuration_parse() argument 1189 dpp_set_configurator(struct dpp_authentication *auth, const char *cmd) dpp_set_configurator() argument 1248 dpp_auth_deinit(struct dpp_authentication *auth) dpp_auth_deinit() argument 1303 dpp_build_conf_start(struct dpp_authentication *auth, struct dpp_configuration *conf, size_t tailroom) dpp_build_conf_start() argument 1419 dpp_build_conf_obj_dpp(struct dpp_authentication *auth, struct dpp_configuration *conf) dpp_build_conf_obj_dpp() argument 1612 dpp_build_conf_obj_legacy(struct dpp_authentication *auth, struct dpp_configuration *conf) dpp_build_conf_obj_legacy() argument 1641 dpp_build_conf_obj(struct dpp_authentication *auth, enum dpp_netrole netrole, int idx, bool cert_req) dpp_build_conf_obj() argument 1695 dpp_build_conf_resp(struct dpp_authentication *auth, const u8 *e_nonce, u16 e_nonce_len, enum dpp_netrole netrole, bool cert_req) dpp_build_conf_resp() argument 1886 dpp_conf_req_rx(struct dpp_authentication *auth, const u8 *attr_start, size_t attr_len) dpp_conf_req_rx() argument 2308 dpp_parse_connector(struct dpp_authentication *auth, struct dpp_config_obj *conf, const unsigned char *payload, u16 payload_len) dpp_parse_connector() argument 2433 dpp_copy_netaccesskey(struct dpp_authentication *auth, struct dpp_config_obj *conf) dpp_copy_netaccesskey() argument 2455 dpp_parse_cred_dpp(struct dpp_authentication *auth, struct dpp_config_obj *conf, struct json_token *cred) dpp_parse_cred_dpp() argument 2550 dpp_parse_cred_dot1x(struct dpp_authentication *auth, struct dpp_config_obj *conf, struct json_token *cred) dpp_parse_cred_dot1x() argument 2708 dpp_parse_conf_obj(struct dpp_authentication *auth, const u8 *conf_obj, u16 conf_obj_len) dpp_parse_conf_obj() argument 2856 dpp_conf_resp_rx(struct dpp_authentication *auth, const struct wpabuf *resp) dpp_conf_resp_rx() argument 3005 dpp_conf_result_rx(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len) dpp_conf_result_rx() argument 3087 dpp_build_conf_result(struct dpp_authentication *auth, enum dpp_status_error status) dpp_build_conf_result() argument 3156 dpp_conn_status_result_rx(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len, u8 *ssid, size_t *ssid_len, char **channel_list) dpp_conn_status_result_rx() argument 3303 dpp_build_conn_status_result(struct dpp_authentication *auth, enum dpp_status_error result, const u8 *ssid, size_t ssid_len, const char *channel_list) dpp_build_conn_status_result() argument 3475 dpp_configurator_own_config(struct dpp_authentication *auth, const char *curve, int ap) dpp_configurator_own_config() argument [all...] |
H A D | dpp_tcp.c | 27 struct dpp_authentication *auth; member 30 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth); 76 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth); 104 dpp_auth_deinit(conn->auth); in dpp_connection_free() 179 struct dpp_authentication *auth = conn->auth; in dpp_controller_gas_done() local 181 if (auth->waiting_csr) { in dpp_controller_gas_done() 187 if (auth->peer_version >= 2 && in dpp_controller_gas_done() 188 auth->conf_resp_status == DPP_STATUS_OK) { in dpp_controller_gas_done() 190 auth in dpp_controller_gas_done() 283 struct dpp_authentication *auth = conn->auth; dpp_controller_start_gas_client() local 304 struct dpp_authentication *auth = conn->auth; dpp_controller_auth_success() local 684 struct dpp_authentication *auth = conn->auth; dpp_controller_rx_auth_resp() local 714 struct dpp_authentication *auth = conn->auth; dpp_controller_rx_auth_conf() local 754 struct dpp_authentication *auth = conn->auth; dpp_controller_rx_conf_result() local 794 struct dpp_authentication *auth = conn->auth; dpp_controller_rx_conn_status_result() local 833 struct dpp_authentication *auth; dpp_controller_rx_presence_announcement() local 882 struct dpp_authentication *auth; dpp_controller_rx_reconfig_announcement() local 940 struct dpp_authentication *auth = conn->auth; dpp_controller_rx_reconfig_auth_resp() local 1115 struct dpp_authentication *auth = conn->auth; dpp_controller_rx_gas_req() local 1172 struct dpp_authentication *auth = conn->auth; dpp_controller_rx_gas_comeback_req() local 1212 struct dpp_authentication *auth = conn->auth; dpp_tcp_build_csr() local 1232 struct dpp_authentication *auth = conn->auth; dpp_tcp_rx_gas_resp() local 1282 struct dpp_authentication *auth = conn->auth; dpp_tcp_gas_query_comeback() local 1566 dpp_tcp_init(struct dpp_global *dpp, struct dpp_authentication *auth, const struct hostapd_ip_addr *addr, int port, const char *name, enum dpp_netrole netrole, void *msg_ctx, void *cb_ctx, int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth)) dpp_tcp_init() argument 1733 dpp_tcp_peer_id_match(struct dpp_authentication *auth, unsigned int id) dpp_tcp_peer_id_match() argument 1784 struct dpp_authentication *auth = conn->auth; dpp_controller_new_qr_code() local [all...] |
H A D | dpp_crypto.c | 423 int dpp_derive_bk_ke(struct dpp_authentication *auth) in dpp_derive_bk_ke() argument 425 unsigned int hash_len = auth->curve->hash_len; in dpp_derive_bk_ke() 426 size_t nonce_len = auth->curve->nonce_len; in dpp_derive_bk_ke() 434 if (!auth->Mx_len || !auth->Nx_len) { in dpp_derive_bk_ke() 441 os_memcpy(nonces, auth->i_nonce, nonce_len); in dpp_derive_bk_ke() 442 os_memcpy(&nonces[nonce_len], auth->r_nonce, nonce_len); in dpp_derive_bk_ke() 443 addr[num_elem] = auth->Mx; in dpp_derive_bk_ke() 444 len[num_elem] = auth->Mx_len; in dpp_derive_bk_ke() 446 addr[num_elem] = auth in dpp_derive_bk_ke() 865 dpp_gen_r_auth(struct dpp_authentication *auth, u8 *r_auth) dpp_gen_r_auth() argument 948 dpp_gen_i_auth(struct dpp_authentication *auth, u8 *i_auth) dpp_gen_i_auth() argument 1035 dpp_auth_derive_l_responder(struct dpp_authentication *auth) dpp_auth_derive_l_responder() argument 1077 dpp_auth_derive_l_initiator(struct dpp_authentication *auth) dpp_auth_derive_l_initiator() argument 1658 dpp_reconfig_derive_ke_responder(struct dpp_authentication *auth, const u8 *net_access_key, size_t net_access_key_len, struct json_token *peer_net_access_key) dpp_reconfig_derive_ke_responder() argument 1759 dpp_reconfig_derive_ke_initiator(struct dpp_authentication *auth, const u8 *r_proto, u16 r_proto_len, struct json_token *net_access_key) dpp_reconfig_derive_ke_initiator() argument 2053 dpp_build_csr(struct dpp_authentication *auth, const char *name) dpp_build_csr() argument 2123 dpp_validate_csr(struct dpp_authentication *auth, const struct wpabuf *csrbuf) dpp_validate_csr() argument [all...] |
H A D | dpp_i.h | 24 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth); 45 int dpp_prepare_channel_list(struct dpp_authentication *auth, 48 void dpp_auth_fail(struct dpp_authentication *auth, const char *txt); 56 struct wpabuf * dpp_build_enveloped_data(struct dpp_authentication *auth); 57 int dpp_conf_resp_env_data(struct dpp_authentication *auth, 103 int dpp_derive_bk_ke(struct dpp_authentication *auth); 104 int dpp_gen_r_auth(struct dpp_authentication *auth, u8 *r_auth); 105 int dpp_gen_i_auth(struct dpp_authentication *auth, u8 *i_auth); 106 int dpp_auth_derive_l_responder(struct dpp_authentication *auth); 107 int dpp_auth_derive_l_initiator(struct dpp_authentication *auth); [all...] |
/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_manager.c | 64 AuthManager *auth = (AuthManager *)SoftBusCalloc(sizeof(AuthManager)); in NewAuthManager() local 65 if (auth == NULL) { in NewAuthManager() 69 auth->authId = authSeq; in NewAuthManager() 70 auth->isServer = info->isServer; in NewAuthManager() 71 auth->connId[info->connInfo.type] = info->connId; in NewAuthManager() 72 auth->connInfo[info->connInfo.type] = info->connInfo; in NewAuthManager() 73 if (strcpy_s(auth->udid, sizeof(auth->udid), info->udid) != EOK || in NewAuthManager() 74 strcpy_s(auth->uuid, sizeof(auth in NewAuthManager() 95 DupAuthManager(const AuthManager *auth) DupAuthManager() argument 112 DelDupAuthManager(AuthManager *auth) DelDupAuthManager() argument 119 DelAuthManager(AuthManager *auth, int32_t type) DelAuthManager() argument 253 SetAuthConnId(AuthManager *auth, const AuthManager *inAuth, AuthLinkType type) SetAuthConnId() argument 259 SetAuthP2pMac(AuthManager *auth, const AuthManager *inAuth, AuthLinkType type) SetAuthP2pMac() argument 276 AuthManager *auth = FindAuthManagerByAuthId(authId); UpdateAuthManagerByAuthId() local 296 AuthManager *auth = FindAuthManagerByAuthId(authId); RemoveAuthSessionKeyByIndex() local 322 AuthManager *auth = FindAuthManagerByAuthId(authHandle.authId); RemoveAuthManagerByAuthId() local 337 AuthManager *auth = FindAuthManagerByConnInfo(connInfo, isServer); RemoveAuthManagerByConnInfo() local 349 HasAuthPassed(AuthManager *auth) HasAuthPassed() argument 396 AuthManager *auth = FindAuthManagerByUuid(uuid, type, false); GetAuthConnInfoByUuid() local 420 AuthManager *auth = FindAuthManagerByUuid(uuid, type, false); GetAvailableAuthConnInfoByUuid() local 489 AuthManager *auth = FindAuthManagerByConnId(connId, isServer); GetAuthIdByConnId() local 511 const AuthManager *auth[2] = { NULL, NULL }; /* 2: client + server */ GetLatestIdByConnInfo() local 535 AuthManager *auth = FindAuthManagerByConnInfo(connInfo, isServer); GetAuthIdByConnInfo() local 554 AuthManager *auth[2] = { NULL, NULL }; /* 2: client + server */ GetActiveAuthIdByConnInfo() local 621 AuthManager *auth = FindNormalizedKeyAuthManagerByUdid(info->udid, info->isServer); GetExistAuthManager() local 646 AuthManager *auth = FindAuthManagerByConnInfo(&info->connInfo, info->isServer); GetDeviceAuthManager() local 685 AuthManager *auth = FindAuthManagerByUdid(info->udid, AUTH_LINK_TYPE_BLE, isServer); ProcessEmptySessionKey() local 713 AuthManager *auth = FindAuthManagerByUdid(info->udid, info->connInfo.type, info->isServer); AuthProcessEmptySessionKey() local 755 AuthManager *auth = GetDeviceAuthManager(authSeq, info, &isNewCreated, sessionKeyIndex); AuthManagerSetSessionKey() local 796 AuthManager *auth = FindAuthManagerByConnInfo(&info->connInfo, info->isServer); AuthManagerGetSessionKey() local 898 AuthManager *auth = FindAuthManagerByConnInfo(&info->connInfo, info->isServer); AuthNotifyAuthPassed() local 944 AuthManager *auth = FindAuthManagerByConnInfo(&info->connInfo, info->isServer); AuthManagerSetAuthPassed() local 991 AuthManager *auth = NULL; AuthManagerSetAuthFailed() local 1232 AuthManager *auth = FindAuthManagerByConnInfo(connInfo, isServer); FlushDeviceProcess() local 1254 AuthManager *auth[AUTH_COUNT] = { NULL, NULL }; /* 2: WiFi * (Client + Server) */ AuthSetTcpKeepaliveByConnInfo() local 1349 AuthManager *auth = FindAuthManagerByConnInfo(connInfo, !fromServer); HandleConnectionData() local 1399 const AuthManager *auth[2] = { NULL, NULL }; /* 2: client + server */ HandleDecryptFailData() local 1558 AuthManager *auth = FindAuthManagerByAuthId(authHandle.authId); AuthHandleLeaveLNN() local 1594 AuthManager *auth[2] = { NULL, NULL }; /* 2: WiFi * (Client + Server) */ PostDeviceMessageByUuid() local 1939 AuthManager *auth[2] = { NULL, NULL }; /* 2: max size for (CLIENT+ SERVER) */ AuthDeviceGetLatestIdByUuid() local 1990 AuthManager *auth = FindAuthManagerByUuid(uuid, type, isServer); AuthDeviceGetIdByUuid() local 2015 AuthManager *auth = FindNormalizedKeyAuthManagerByUdid(udid, isServer); AuthDeviceGetAuthHandleByIndex() local 2036 AuthManager *auth = GetAuthManagerByAuthId(authId); AuthGetEncryptSize() local [all...] |
H A D | auth_device.c | 184 AuthManager *auth = GetAuthManagerByAuthId(authHandle.authId); in AuthDevicePostTransData() local 185 if (auth == NULL) { in AuthDevicePostTransData() 196 if (EncryptInner(&auth->sessionKeyList, (AuthLinkType)authHandle.type, &inDataInfo, &encData, in AuthDevicePostTransData() 199 DelDupAuthManager(auth); in AuthDevicePostTransData() 202 if (PostAuthData(auth->connId[authHandle.type], !auth->isServer, &head, encData) != SOFTBUS_OK) { in AuthDevicePostTransData() 205 DelDupAuthManager(auth); in AuthDevicePostTransData() 209 DelDupAuthManager(auth); in AuthDevicePostTransData() 221 AuthManager *auth = GetAuthManagerByAuthId(authHandle->authId); in AuthDeviceEncrypt() local 222 if (auth in AuthDeviceEncrypt() 244 AuthManager *auth = GetAuthManagerByAuthId(authHandle->authId); AuthDeviceDecrypt() local 269 AuthManager *auth = GetAuthManagerByAuthId(authHandle.authId); AuthDeviceGetConnInfo() local 284 AuthManager *auth = GetAuthManagerByAuthId(authId); AuthDeviceGetServerSide() local 299 AuthManager *auth = GetAuthManagerByAuthId(authId); AuthDeviceGetDeviceUuid() local 318 AuthManager *auth = GetAuthManagerByAuthId(authId); AuthDeviceGetVersion() local 353 AuthManager *auth = GetAuthManagerByAuthId(authHandle.authId); AuthNotifyDeviceVerifyPassed() local 517 AuthManager *auth = GetDeviceAuthManager(authSeq, info, &isNewCreated, authSeq); AuthDirectOnlineCreateAuthManager() local 615 AuthManager *auth = GetAuthManagerByAuthId(authHandle.authId); AuthStartReconnectDevice() local 647 AuthManager *auth = GetAuthManagerByAuthId(authHandle->authId); AuthCheckSessionKey() local 708 AuthManager *auth = GetAuthManagerByAuthId(authHandle.authId); AuthDeviceCloseConn() local [all...] |
H A D | auth_interface.c | 197 AUTH_LOGE(AUTH_CONN, "client and server auth not found, type=%{public}d", type); in AuthCheckSessionKeyValidByConnInfo() 227 AuthManager *auth = GetAuthManagerByAuthId(authHandle->authId); in AuthCheckSessionKeyValidByAuthHandle() local 228 if (auth == NULL) { in AuthCheckSessionKeyValidByAuthHandle() 229 AUTH_LOGE(AUTH_CONN, "not found auth manager, type=%{public}d, authId=%{public}" PRId64, in AuthCheckSessionKeyValidByAuthHandle() 234 if (!CheckSessionKeyListExistType(&auth->sessionKeyList, (AuthLinkType)authHandle->type)) { in AuthCheckSessionKeyValidByAuthHandle() 239 DelDupAuthManager(auth); in AuthCheckSessionKeyValidByAuthHandle() 262 AuthManager *auth = GetAuthManagerByAuthId(authHandle.authId); in AuthPostTransData() local 263 if (auth != NULL) { in AuthPostTransData() 264 DelDupAuthManager(auth); in AuthPostTransData() 276 AuthManager *auth in AuthCloseConn() local 456 AuthManager *auth = GetAuthManagerByConnInfo(&info->connInfo, info->isServer); AuthDirectOnlineProcessSessionKey() local 474 AuthManager *auth = GetAuthManagerByConnInfo(&info->connInfo, info->isServer); AuthDirectOnlineWithoutSessionKey() local 533 AuthManager *auth = GetAuthManagerByAuthId(authHandle->authId); AuthEncrypt() local 548 AuthManager *auth = GetAuthManagerByAuthId(authHandle->authId); AuthDecrypt() local 558 AuthManager *auth = GetAuthManagerByAuthId(authId); AuthSetP2pMac() local 572 AuthManager *auth = GetAuthManagerByAuthId(authHandle.authId); AuthGetConnInfo() local 582 AuthManager *auth = GetAuthManagerByAuthId(authId); AuthGetDeviceUuid() local 597 AuthManager *auth = GetAuthManagerByAuthId(authId); AuthGetServerSide() local 611 AuthManager *auth = GetAuthManagerByAuthId(authId); AuthGetMetaType() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | dpp_supplicant.c | 65 struct dpp_authentication *auth = wpa_s->dpp_auth; in wpas_dpp_qr_code() local 71 if (auth && auth->response_pending && in wpas_dpp_qr_code() 72 dpp_notify_new_qr_code(auth, bi) == 1) { in wpas_dpp_qr_code() 77 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in wpas_dpp_qr_code() 79 offchannel_send_action(wpa_s, auth->curr_freq, in wpas_dpp_qr_code() 80 auth->peer_mac_addr, wpa_s->own_addr, in wpas_dpp_qr_code() 82 wpabuf_head(auth->resp_msg), in wpas_dpp_qr_code() 83 wpabuf_len(auth in wpas_dpp_qr_code() 94 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_auth_resp_retry_timeout() local 115 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_auth_resp_retry() local 167 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_tx_status() local 252 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_reply_wait_timeout() local 315 wpas_dpp_set_testing_options(struct wpa_supplicant *wpa_s, struct dpp_authentication *auth) wpas_dpp_set_testing_options() argument 347 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_auth_init_next() local 437 struct dpp_authentication *auth; wpas_dpp_auth_init() local 811 wpas_dpp_add_network(struct wpa_supplicant *wpa_s, struct dpp_authentication *auth) wpas_dpp_add_network() argument 910 wpas_dpp_process_config(struct wpa_supplicant *wpa_s, struct dpp_authentication *auth) wpas_dpp_process_config() argument 949 wpas_dpp_handle_config_obj(struct wpa_supplicant *wpa_s, struct dpp_authentication *auth) wpas_dpp_handle_config_obj() argument 1013 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_gas_resp_cb() local 1100 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_start_gas_client() local 1172 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_rx_auth_resp() local 1228 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_rx_auth_conf() local 1260 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_config_result_wait_timeout() local 1276 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_rx_conf_result() local 1308 wpas_dpp_process_conf_obj(void *ctx, struct dpp_authentication *auth) wpas_dpp_process_conf_obj() argument 1876 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_gas_req_handler() local 1915 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_gas_status_handler() local 1962 struct dpp_authentication *auth; wpas_dpp_configurator_sign() local [all...] |
H A D | wpa_priv.c | 245 struct privsep_cmd_authenticate *auth; in wpa_priv_cmd_authenticate() local 251 if (len < sizeof(*auth)) { in wpa_priv_cmd_authenticate() 256 auth = buf; in wpa_priv_cmd_authenticate() 257 if (sizeof(*auth) + auth->ie_len + auth->auth_data_len > len) { in wpa_priv_cmd_authenticate() 263 params.freq = auth->freq; in wpa_priv_cmd_authenticate() 264 params.bssid = auth->bssid; in wpa_priv_cmd_authenticate() 265 params.ssid = auth->ssid; in wpa_priv_cmd_authenticate() 266 if (auth in wpa_priv_cmd_authenticate() 887 struct privsep_event_auth *auth; wpa_priv_send_auth() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | dpp_supplicant.c | 55 struct dpp_authentication *auth); 74 struct dpp_authentication *auth = wpa_s->dpp_auth; in wpas_dpp_qr_code() local 80 if (auth && auth->response_pending && in wpas_dpp_qr_code() 81 dpp_notify_new_qr_code(auth, bi) == 1) { in wpas_dpp_qr_code() 86 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in wpas_dpp_qr_code() 88 offchannel_send_action(wpa_s, auth->curr_freq, in wpas_dpp_qr_code() 89 auth->peer_mac_addr, wpa_s->own_addr, in wpas_dpp_qr_code() 91 wpabuf_head(auth in wpas_dpp_qr_code() 192 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_auth_resp_retry_timeout() local 213 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_auth_resp_retry() local 295 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_conn_status_result_timeout() local 370 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_send_conn_status_result() local 417 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_connected() local 433 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_tx_status() local 547 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_reply_wait_timeout() local 613 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_auth_conf_wait_timeout() local 627 wpas_dpp_set_testing_options(struct wpa_supplicant *wpa_s, struct dpp_authentication *auth) wpas_dpp_set_testing_options() argument 659 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_auth_init_next() local 751 struct dpp_authentication *auth; wpas_dpp_auth_init() local 1171 wpas_dpp_add_network(struct wpa_supplicant *wpa_s, struct dpp_authentication *auth, struct dpp_config_obj *conf) wpas_dpp_add_network() argument 1382 wpas_dpp_process_config(struct wpa_supplicant *wpa_s, struct dpp_authentication *auth, struct dpp_config_obj *conf) wpas_dpp_process_config() argument 1409 wpas_dpp_post_process_config(struct wpa_supplicant *wpa_s, struct dpp_authentication *auth) wpas_dpp_post_process_config() argument 1442 wpas_dpp_handle_config_obj(struct wpa_supplicant *wpa_s, struct dpp_authentication *auth, struct dpp_config_obj *conf) wpas_dpp_handle_config_obj() argument 1594 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_build_csr() local 1622 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_gas_resp_cb() local 1730 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_start_gas_client() local 1794 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_rx_auth_resp() local 1850 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_rx_auth_conf() local 1884 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_config_result_wait_timeout() local 1901 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_conn_status_result_wait_timeout() local 1918 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_rx_conf_result() local 1984 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_rx_conn_status_result() local 2018 wpas_dpp_process_conf_obj(void *ctx, struct dpp_authentication *auth) wpas_dpp_process_conf_obj() argument 2055 struct dpp_authentication *auth; wpas_dpp_rx_presence_announcement() local 2115 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_reconfig_reply_wait_timeout() local 2136 struct dpp_authentication *auth; wpas_dpp_rx_reconfig_announcement() local 2227 struct dpp_authentication *auth; wpas_dpp_rx_reconfig_auth_req() local 2285 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_rx_reconfig_auth_resp() local 2330 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_rx_reconfig_auth_conf() local 2974 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_gas_req_handler() local 3024 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_gas_status_handler() local 3081 struct dpp_authentication *auth; wpas_dpp_configurator_sign() local 3896 wpas_dpp_build_conf_resp(struct wpa_supplicant *wpa_s, struct dpp_authentication *auth, bool tcp) wpas_dpp_build_conf_resp() argument 3927 struct dpp_authentication *auth = wpa_s->dpp_auth; wpas_dpp_ca_set() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | dpp_hostapd.c | 35 struct dpp_authentication *auth, 51 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_qr_code() local 57 if (auth && auth->response_pending && in hostapd_dpp_qr_code() 58 dpp_notify_new_qr_code(auth, bi) == 1) { in hostapd_dpp_qr_code() 63 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in hostapd_dpp_qr_code() 65 hostapd_drv_send_action(hapd, auth->curr_freq, 0, in hostapd_dpp_qr_code() 66 auth->peer_mac_addr, in hostapd_dpp_qr_code() 166 struct dpp_authentication *auth in hostapd_dpp_auth_resp_retry_timeout() local 185 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_auth_resp_retry() local 222 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_tx_status() local 326 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_reply_wait_timeout() local 399 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_auth_conf_wait_timeout() local 414 hostapd_dpp_set_testing_options(struct hostapd_data *hapd, struct dpp_authentication *auth) hostapd_dpp_set_testing_options() argument 445 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_auth_init_next() local 533 hostapd_dpp_process_conf_obj(void *ctx, struct dpp_authentication *auth) hostapd_dpp_process_conf_obj() argument 552 struct dpp_authentication *auth; hostapd_dpp_auth_init() local 804 hostapd_dpp_handle_config_obj(struct hostapd_data *hapd, struct dpp_authentication *auth, struct dpp_config_obj *conf) hostapd_dpp_handle_config_obj() argument 913 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_gas_resp_cb() local 996 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_start_gas_client() local 1051 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_rx_auth_resp() local 1103 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_rx_auth_conf() local 1135 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_config_result_wait_timeout() local 1152 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_conn_status_result_wait_timeout() local 1169 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_rx_conf_result() local 1221 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_rx_conn_status_result() local 1263 struct dpp_authentication *auth; hostapd_dpp_rx_presence_announcement() local 1328 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_reconfig_reply_wait_timeout() local 1348 struct dpp_authentication *auth; hostapd_dpp_rx_reconfig_announcement() local 1439 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_rx_reconfig_auth_resp() local 2030 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_gas_req_handler() local 2073 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_gas_status_handler() local 2111 struct dpp_authentication *auth; hostapd_dpp_configurator_sign() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
H A D | dpp.c | 81 struct dpp_authentication *auth; member 130 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth); 698 static void dpp_auth_fail(struct dpp_authentication *auth, const char *txt) in dpp_auth_fail() argument 700 wpa_msg(auth->msg_ctx, MSG_INFO, DPP_EVENT_FAIL "%s", txt); in dpp_auth_fail() 1576 static int dpp_derive_ke(struct dpp_authentication *auth, u8 *ke, in dpp_derive_ke() argument 1588 if (!auth->Mx_len || !auth->Nx_len) { in dpp_derive_ke() 1597 nonce_len = auth->curve->nonce_len; in dpp_derive_ke() 1598 os_memcpy(nonces, auth->i_nonce, nonce_len); in dpp_derive_ke() 1599 os_memcpy(&nonces[nonce_len], auth in dpp_derive_ke() 1669 dpp_auth_build_req(struct dpp_authentication *auth, const struct wpabuf *pi, size_t nonce_len, const u8 *r_pubkey_hash, const u8 *i_pubkey_hash, unsigned int neg_freq) dpp_auth_build_req() argument 1841 dpp_auth_build_resp(struct dpp_authentication *auth, enum dpp_status_error status, const struct wpabuf *pr, size_t nonce_len, const u8 *r_pubkey_hash, const u8 *i_pubkey_hash, const u8 *r_nonce, const u8 *i_nonce, const u8 *wrapped_r_auth, size_t wrapped_r_auth_len, const u8 *siv_key) dpp_auth_build_resp() argument 2077 dpp_channel_intersect(struct dpp_authentication *auth, struct hostapd_hw_modes *own_modes, u16 num_modes) dpp_channel_intersect() argument 2101 dpp_channel_local_list(struct dpp_authentication *auth, struct hostapd_hw_modes *own_modes, u16 num_modes) dpp_channel_local_list() argument 2141 dpp_prepare_channel_list(struct dpp_authentication *auth, struct hostapd_hw_modes *own_modes, u16 num_modes) dpp_prepare_channel_list() argument 2181 dpp_autogen_bootstrap_key(struct dpp_authentication *auth) dpp_autogen_bootstrap_key() argument 2228 struct dpp_authentication *auth; dpp_auth_init() local 2361 dpp_build_conf_req_attr(struct dpp_authentication *auth, const char *json) dpp_build_conf_req_attr() argument 2488 dpp_build_conf_req(struct dpp_authentication *auth, const char *json) dpp_build_conf_req() argument 2515 dpp_auth_success(struct dpp_authentication *auth) dpp_auth_success() argument 2532 dpp_gen_r_auth(struct dpp_authentication *auth, u8 *r_auth) dpp_gen_r_auth() argument 2611 dpp_gen_i_auth(struct dpp_authentication *auth, u8 *i_auth) dpp_gen_i_auth() argument 2694 dpp_auth_derive_l_responder(struct dpp_authentication *auth) dpp_auth_derive_l_responder() argument 2761 dpp_auth_derive_l_initiator(struct dpp_authentication *auth) dpp_auth_derive_l_initiator() argument 2822 dpp_auth_build_resp_ok(struct dpp_authentication *auth) dpp_auth_build_resp_ok() argument 3006 dpp_auth_build_resp_status(struct dpp_authentication *auth, enum dpp_status_error status) dpp_auth_build_resp_status() argument 3089 struct dpp_authentication *auth = NULL; dpp_auth_req_rx() local 3340 dpp_notify_new_qr_code(struct dpp_authentication *auth, struct dpp_bootstrap_info *peer_bi) dpp_notify_new_qr_code() argument 3360 dpp_auth_build_conf(struct dpp_authentication *auth, enum dpp_status_error status) dpp_auth_build_conf() argument 3539 dpp_auth_resp_rx_status(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len, const u8 *wrapped_data, u16 wrapped_data_len, enum dpp_status_error status) dpp_auth_resp_rx_status() argument 3637 dpp_auth_resp_rx(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len) dpp_auth_resp_rx() argument 3969 dpp_auth_conf_rx_failure(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len, const u8 *wrapped_data, u16 wrapped_data_len, enum dpp_status_error status) dpp_auth_conf_rx_failure() argument 4040 dpp_auth_conf_rx(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len) dpp_auth_conf_rx() argument 4302 dpp_configuration_parse(struct dpp_authentication *auth, const char *cmd) dpp_configuration_parse() argument 4427 dpp_set_configurator(struct dpp_global *dpp, void *msg_ctx, struct dpp_authentication *auth, const char *cmd) dpp_set_configurator() argument 4458 dpp_auth_deinit(struct dpp_authentication *auth) dpp_auth_deinit() argument 4483 dpp_build_conf_start(struct dpp_authentication *auth, struct dpp_configuration *conf, size_t tailroom) dpp_build_conf_start() argument 4583 dpp_build_conf_obj_dpp(struct dpp_authentication *auth, int ap, struct dpp_configuration *conf) dpp_build_conf_obj_dpp() argument 4797 dpp_build_conf_obj_legacy(struct dpp_authentication *auth, int ap, struct dpp_configuration *conf) dpp_build_conf_obj_legacy() argument 4818 dpp_build_conf_obj(struct dpp_authentication *auth, int ap) dpp_build_conf_obj() argument 4845 dpp_build_conf_resp(struct dpp_authentication *auth, const u8 *e_nonce, u16 e_nonce_len, int ap) dpp_build_conf_resp() argument 4974 dpp_conf_req_rx(struct dpp_authentication *auth, const u8 *attr_start, size_t attr_len) dpp_conf_req_rx() argument 5180 dpp_parse_cred_legacy(struct dpp_authentication *auth, struct json_token *cred) dpp_parse_cred_legacy() argument 5385 dpp_parse_connector(struct dpp_authentication *auth, const unsigned char *payload, u16 payload_len) dpp_parse_connector() argument 5513 dpp_copy_csign(struct dpp_authentication *auth, EVP_PKEY *csign) dpp_copy_csign() argument 5527 dpp_copy_netaccesskey(struct dpp_authentication *auth) dpp_copy_netaccesskey() argument 5720 dpp_parse_cred_dpp(struct dpp_authentication *auth, struct json_token *cred) dpp_parse_cred_dpp() argument 5832 dpp_parse_conf_obj(struct dpp_authentication *auth, const u8 *conf_obj, u16 conf_obj_len) dpp_parse_conf_obj() argument 5912 dpp_conf_resp_rx(struct dpp_authentication *auth, const struct wpabuf *resp) dpp_conf_resp_rx() argument 6013 dpp_conf_result_rx(struct dpp_authentication *auth, const u8 *hdr, const u8 *attr_start, size_t attr_len) dpp_conf_result_rx() argument 6096 dpp_build_conf_result(struct dpp_authentication *auth, enum dpp_status_error status) dpp_build_conf_result() argument 6249 dpp_configurator_own_config(struct dpp_authentication *auth, const char *curve, int ap) dpp_configurator_own_config() argument 8880 struct dpp_authentication *auth = conn->auth; dpp_controller_gas_done() local 8952 struct dpp_authentication *auth = conn->auth; dpp_controller_start_gas_client() local 9004 struct dpp_authentication *auth = conn->auth; dpp_controller_auth_success() local 9385 struct dpp_authentication *auth = conn->auth; dpp_controller_rx_auth_resp() local 9435 struct dpp_authentication *auth = conn->auth; dpp_controller_rx_auth_conf() local 9459 struct dpp_authentication *auth = conn->auth; dpp_controller_rx_conf_result() local 9548 struct dpp_authentication *auth = conn->auth; dpp_controller_rx_gas_req() local 9623 struct dpp_authentication *auth = conn->auth; dpp_tcp_rx_gas_resp() local 9908 dpp_tcp_init(struct dpp_global *dpp, struct dpp_authentication *auth, const struct hostapd_ip_addr *addr, int port) dpp_tcp_init() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | dpp_hostapd.c | 41 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_qr_code() local 47 if (auth && auth->response_pending && in hostapd_dpp_qr_code() 48 dpp_notify_new_qr_code(auth, bi) == 1) { in hostapd_dpp_qr_code() 53 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in hostapd_dpp_qr_code() 55 hostapd_drv_send_action(hapd, auth->curr_freq, 0, in hostapd_dpp_qr_code() 56 auth->peer_mac_addr, in hostapd_dpp_qr_code() 69 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_auth_resp_retry_timeout() local 71 if (!auth || !aut in hostapd_dpp_auth_resp_retry_timeout() 88 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_auth_resp_retry() local 125 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_tx_status() local 212 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_reply_wait_timeout() local 281 hostapd_dpp_set_testing_options(struct hostapd_data *hapd, struct dpp_authentication *auth) hostapd_dpp_set_testing_options() argument 312 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_auth_init_next() local 609 hostapd_dpp_handle_config_obj(struct hostapd_data *hapd, struct dpp_authentication *auth) hostapd_dpp_handle_config_obj() argument 687 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_gas_resp_cb() local 766 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_start_gas_client() local 828 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_rx_auth_resp() local 880 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_rx_auth_conf() local 912 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_config_result_wait_timeout() local 928 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_rx_conf_result() local 1431 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_gas_req_handler() local 1461 struct dpp_authentication *auth = hapd->dpp_auth; hostapd_dpp_gas_status_handler() local 1496 struct dpp_authentication *auth; hostapd_dpp_configurator_sign() local [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | base_key.h | 44 bool StoreKey(const UserAuth &auth, bool needGenerateShield = true); 46 bool StoreKey(const UserAuth &auth); 49 bool RestoreKey(const UserAuth &auth); 58 virtual bool DecryptClassE(const UserAuth &auth, bool &isSupport, bool &eBufferStatue, uint32_t user, 60 virtual bool EncryptClassE(const UserAuth &auth, bool &isSupport, uint32_t user, uint32_t status) = 0; 63 bool DoRestoreKeyEx(const UserAuth &auth, const std::string &keypath); 64 bool EncryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, KeyBlob &encryptedKey); 65 bool DecryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, KeyBlob &decryptedKey); 93 bool DoStoreKey(const UserAuth &auth, bool needGenerateShield = true); 95 bool DoStoreKey(const UserAuth &auth); [all...] |
/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_lane_test.cpp | 138 * @tc.desc: add auth request node test 185 * @tc.desc: auth get request option test test 209 * @tc.desc: get auth link type list test 233 * @tc.desc: auth alloc lane test 263 * @tc.desc: auth alloc lane wlan test 284 AuthManager *auth = FindAuthManagerByConnInfo(&connInfo, false); in HWTEST_F() local 285 EXPECT_TRUE(auth != nullptr); in HWTEST_F() 286 auth->hasAuthPassed[AUTH_LINK_TYPE_WIFI] = true; in HWTEST_F() 287 auth->authId = 1; in HWTEST_F() 288 auth in HWTEST_F() 330 AuthManager *auth = FindAuthManagerByConnInfo(&connInfo, false); HWTEST_F() local 374 AuthManager *auth = FindAuthManagerByConnInfo(&connInfo, false); HWTEST_F() local 414 AuthManager *auth = FindAuthManagerByConnInfo(&connInfo, false); HWTEST_F() local 460 AuthManager *auth = FindAuthManagerByConnInfo(&connInfo, false); HWTEST_F() local 507 AuthManager *auth = FindAuthManagerByConnInfo(&connInfo, false); HWTEST_F() local 550 AuthManager *auth = FindAuthManagerByConnInfo(&connInfo, false); HWTEST_F() local [all...] |
/third_party/node/deps/npm/node_modules/npm-registry-fetch/lib/ |
H A D | check-response.js | 10 const moreInfoUrl = 'https://github.com/npm/cli/wiki/No-auth-for-URI,-but-auth-present-for-scoped-registry' 12 async ({ method, uri, res, startTime, auth, opts }) => { 20 if (auth && auth.scopeAuthKey && !auth.token && !auth.auth) { 21 // we didn't have auth for THIS request, but we do have auth fo [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | base_key.cpp | 195 bool BaseKey::StoreKey(const UserAuth &auth, bool needGenerateShield) in StoreKey() argument 197 bool BaseKey::StoreKey(const UserAuth &auth) in StoreKey() 203 if (DoStoreKey(auth, needGenerateShield)) { in StoreKey() 205 if (DoStoreKey(auth)) { in StoreKey() 229 bool BaseKey::DoStoreKey(const UserAuth &auth, bool needGenerateShield) in StoreKey() argument 231 bool BaseKey::DoStoreKey(const UserAuth &auth) in StoreKey() 244 return EncryptDe(auth, pathTemp); in StoreKey() 246 if ((auth.token.IsEmpty() && auth.secret.IsEmpty()) || // OOBE首次开机 删除密码(ABC) in StoreKey() 247 !auth in StoreKey() 287 InitKeyContext(const UserAuth &auth, const std::string &keyPath, KeyContext &keyCtx) StoreKey() argument 331 LoadAndSaveShield(const UserAuth &auth, const std::string &pathShield, bool needGenerateShield, KeyContext &keyCtx) StoreKey() argument 421 EncryptDe(const UserAuth &auth, const std::string &path) StoreKey() argument 450 EncryptEceSece(const UserAuth &auth, const uint32_t keyType, KeyContext &keyCtx) StoreKey() argument 482 RestoreKey(const UserAuth &auth) StoreKey() argument 521 DoRestoreKeyEx(const UserAuth &auth, const std::string &keyPath) StoreKey() argument 565 DoRestoreKeyOld(const UserAuth &auth, const std::string &path) StoreKey() argument 598 DoRestoreKeyDe(const UserAuth &auth, const std::string &path) StoreKey() argument 625 DoRestoreKeyCeEceSece(const UserAuth &auth, const std::string &path, const uint32_t keyType) StoreKey() argument 673 DoRestoreKey(const UserAuth &auth, const std::string &path) StoreKey() argument 701 DoUpdateRestore(const UserAuth &auth, const std::string &keyPath) StoreKey() argument 729 DecryptReal(const UserAuth &auth, const uint32_t keyType, KeyContext &keyCtx) StoreKey() argument 757 Decrypt(const UserAuth &auth) StoreKey() argument 919 EncryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, KeyBlob &encryptedKey) StoreKey() argument 952 DecryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, KeyBlob &decryptedKey) StoreKey() argument [all...] |
H A D | huks_master.cpp | 330 static int AppendSecureAccessParams(const UserAuth &auth, HksParamSet *paramSet) in AppendSecureAccessParams() argument 332 if (auth.secret.IsEmpty() || auth.token.IsEmpty()) { in AppendSecureAccessParams() 333 LOGI("auth is empty, not to enable secure access for the key"); in AppendSecureAccessParams() 344 { .tag = HKS_TAG_USER_AUTH_SECURE_UID, .blob = { sizeof(auth.secureUid), (uint8_t *)&auth.secureUid } }, in AppendSecureAccessParams() 365 bool HuksMaster::GenerateKey(const UserAuth &auth, KeyBlob &keyOut) in GenerateKey() argument 382 ret = AppendSecureAccessParams(auth, paramSet); in GenerateKey() 466 static int AppendNonceAadTokenEx(KeyContext &ctx, const UserAuth &auth, HksParamSet *paramSet, bool isEncrypt) in AppendNonceAadTokenEx() argument 468 if (auth in AppendNonceAadTokenEx() 485 AppendNewNonceAadToken(KeyContext &ctx, const UserAuth &auth, HksParamSet *paramSet, const bool isEncrypt) AppendNewNonceAadToken() argument 506 AppendNonceAadToken(KeyContext &ctx, const UserAuth &auth, HksParamSet *paramSet) AppendNonceAadToken() argument 535 GenHuksOptionParamEx(KeyContext &ctx, const UserAuth &auth, const bool isEncrypt) GenHuksOptionParamEx() argument 586 GenHuksOptionParam(KeyContext &ctx, const UserAuth &auth, const bool isEncrypt, const bool isNeedNewNonce) GenHuksOptionParam() argument 674 EncryptKeyEx(const UserAuth &auth, const KeyBlob &rnd, KeyContext &ctx) EncryptKeyEx() argument 708 EncryptKey(KeyContext &ctx, const UserAuth &auth, const KeyInfo &key, bool isNeedNewNonce) EncryptKey() argument 741 DecryptKey(KeyContext &ctx, const UserAuth &auth, KeyInfo &key, bool isNeedNewNonce) DecryptKey() argument 775 DecryptKeyEx(KeyContext &ctx, const UserAuth &auth, KeyBlob &rnd) DecryptKeyEx() argument [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/crypto_test/ |
H A D | crypto_test.cpp | 103 const UserAuth auth; in HWTEST_F() local 108 bool ret = HuksMaster::GetInstance().EncryptKey(ctx, auth, key, isNeedNewNonce); in HWTEST_F() 111 ret = HuksMaster::GetInstance().EncryptKeyEx(auth, rnd, ctx); in HWTEST_F() 127 const UserAuth auth; in HWTEST_F() local 132 bool ret = HuksMaster::GetInstance().EncryptKey(ctx, auth, key, isNeedNewNonce); in HWTEST_F() 135 ret = HuksMaster::GetInstance().EncryptKeyEx(auth, rnd, ctx); in HWTEST_F() 150 const UserAuth auth; in HWTEST_F() local 155 bool ret = HuksMaster::GetInstance().DecryptKey(ctx, auth, key, isNeedNewNonce); in HWTEST_F() 158 ret = HuksMaster::GetInstance().DecryptKeyEx(ctx, auth, rnd); in HWTEST_F() 174 const UserAuth auth; in HWTEST_F() local 198 const UserAuth auth; HWTEST_F() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/wpa_gui-qt4/ |
H A D | networkconfig.cpp | 72 int auth, encr = 0; in paramsFromScanResults() local 74 auth = AUTH_WPA2_EAP; in paramsFromScanResults() 76 auth = AUTH_WPA_EAP; in paramsFromScanResults() 78 auth = AUTH_WPA2_PSK; in paramsFromScanResults() 80 auth = AUTH_WPA_PSK; in paramsFromScanResults() 82 auth = AUTH_NONE_OPEN; in paramsFromScanResults() 90 if (auth == AUTH_NONE_OPEN) in paramsFromScanResults() 91 auth = AUTH_NONE_WEP; in paramsFromScanResults() 95 authSelect->setCurrentIndex(auth); in paramsFromScanResults() 96 authChanged(auth); in paramsFromScanResults() 191 int auth = authSelect->currentIndex(); addNetwork() local 534 int auth = AUTH_NONE_OPEN, encr = 0; paramsFromConfig() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/wpa_gui-qt4/ |
H A D | networkconfig.cpp | 72 int auth, encr = 0; in paramsFromScanResults() local 74 auth = AUTH_WPA2_EAP; in paramsFromScanResults() 76 auth = AUTH_WPA_EAP; in paramsFromScanResults() 78 auth = AUTH_WPA2_PSK; in paramsFromScanResults() 80 auth = AUTH_WPA_PSK; in paramsFromScanResults() 82 auth = AUTH_NONE_OPEN; in paramsFromScanResults() 90 if (auth == AUTH_NONE_OPEN) in paramsFromScanResults() 91 auth = AUTH_NONE_WEP; in paramsFromScanResults() 95 authSelect->setCurrentIndex(auth); in paramsFromScanResults() 96 authChanged(auth); in paramsFromScanResults() 191 int auth = authSelect->currentIndex(); addNetwork() local 534 int auth = AUTH_NONE_OPEN, encr = 0; paramsFromConfig() local [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/mock/ |
H A D | base_key_mock.cpp | 38 bool BaseKey::StoreKey(const UserAuth &auth, bool needGenerateShield) in StoreKey() argument 43 return IBaseKeyMoc::baseKeyMoc->StoreKey(auth, needGenerateShield); in StoreKey() 46 bool BaseKey::StoreKey(const UserAuth &auth) in StoreKey() argument 51 return IBaseKeyMoc::baseKeyMoc->StoreKey(auth); in StoreKey() 71 bool BaseKey::RestoreKey(const UserAuth &auth) in RestoreKey() argument 76 return IBaseKeyMoc::baseKeyMoc->RestoreKey(auth); in RestoreKey() 87 bool BaseKey::DecryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, in DecryptKeyBlob() argument 93 return IBaseKeyMoc::baseKeyMoc->DecryptKeyBlob(auth, keyPath, planKey, decryptedKey); in DecryptKeyBlob() 96 bool BaseKey::EncryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, in EncryptKeyBlob() argument 102 return IBaseKeyMoc::baseKeyMoc->EncryptKeyBlob(auth, keyPat in EncryptKeyBlob() [all...] |
/third_party/node/test/parallel/ |
H A D | test-url-parse-format.js | 101 auth: 'user:pw', 112 auth: 'USER:PW', 123 auth: 'user', 134 auth: 'user:pw', 282 auth: 'user:pass', 362 auth: 'user:pass', 376 auth: 'user:pass', 409 auth: 'foo', 427 auth: 'isaacschlueter', 436 auth [all...] |