Home
last modified time | relevance | path

Searched refs:sm (Results 1 – 25 of 567) sorted by relevance

12345678910>>...23

/external/wpa_supplicant_8/src/pae/
Dieee802_1x_cp.c95 static int changed_cipher(struct ieee802_1x_cp_sm *sm) in changed_cipher() argument
97 return sm->confidentiality_offset != sm->cipher_offset || in changed_cipher()
98 sm->current_cipher_suite != sm->cipher_suite; in changed_cipher()
102 static int changed_connect(struct ieee802_1x_cp_sm *sm) in changed_connect() argument
104 return sm->connect != SECURE || sm->chgd_server || changed_cipher(sm); in changed_connect()
112 sm->controlled_port_enabled = false; in SM_STATE()
113 secy_cp_control_enable_port(sm->kay, sm->controlled_port_enabled); in SM_STATE()
115 sm->port_valid = false; in SM_STATE()
117 os_free(sm->lki); in SM_STATE()
118 sm->lki = NULL; in SM_STATE()
[all …]
/external/wpa_supplicant_8/src/eapol_supp/
Deapol_supp_sm.c152 static void eapol_sm_txLogoff(struct eapol_sm *sm);
153 static void eapol_sm_txStart(struct eapol_sm *sm);
154 static void eapol_sm_processKey(struct eapol_sm *sm);
155 static void eapol_sm_getSuppRsp(struct eapol_sm *sm);
156 static void eapol_sm_txSuppRsp(struct eapol_sm *sm);
157 static void eapol_sm_abortSupp(struct eapol_sm *sm);
158 static void eapol_sm_abort_cached(struct eapol_sm *sm);
160 static void eapol_sm_set_port_authorized(struct eapol_sm *sm);
161 static void eapol_sm_set_port_unauthorized(struct eapol_sm *sm);
168 struct eapol_sm *sm = timeout_ctx; in eapol_port_timers_tick() local
[all …]
Deapol_supp_sm.h318 void eapol_sm_deinit(struct eapol_sm *sm);
319 void eapol_sm_step(struct eapol_sm *sm);
320 int eapol_sm_get_status(struct eapol_sm *sm, char *buf, size_t buflen,
322 int eapol_sm_get_mib(struct eapol_sm *sm, char *buf, size_t buflen);
323 void eapol_sm_configure(struct eapol_sm *sm, int heldPeriod, int authPeriod,
325 int eapol_sm_rx_eapol(struct eapol_sm *sm, const u8 *src, const u8 *buf,
327 void eapol_sm_notify_tx_eapol_key(struct eapol_sm *sm);
328 void eapol_sm_notify_portEnabled(struct eapol_sm *sm, bool enabled);
329 void eapol_sm_notify_portValid(struct eapol_sm *sm, bool valid);
330 void eapol_sm_notify_eap_success(struct eapol_sm *sm, bool success);
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server.c28 static int eap_sm_calculateTimeout(struct eap_sm *sm, int retransCount,
31 static void eap_sm_parseEapResp(struct eap_sm *sm, const struct wpabuf *resp);
33 static struct wpabuf * eap_sm_buildSuccess(struct eap_sm *sm, u8 id);
34 static struct wpabuf * eap_sm_buildFailure(struct eap_sm *sm, u8 id);
35 static int eap_sm_nextId(struct eap_sm *sm, int id);
36 static void eap_sm_Policy_update(struct eap_sm *sm, const u8 *nak_list,
38 static enum eap_type eap_sm_Policy_getNextMethod(struct eap_sm *sm,
40 static int eap_sm_Policy_getDecision(struct eap_sm *sm);
41 static bool eap_sm_Policy_doPickUp(struct eap_sm *sm, enum eap_type method);
44 static int eap_get_erp_send_reauth_start(struct eap_sm *sm) in eap_get_erp_send_reauth_start() argument
[all …]
Deap_server_ttls.c24 static void eap_ttls_reset(struct eap_sm *sm, void *priv);
79 static void eap_ttls_valid_session(struct eap_sm *sm, in eap_ttls_valid_session() argument
84 if (!sm->cfg->tls_session_lifetime) in eap_ttls_valid_session()
87 buf = wpabuf_alloc(1 + 1 + sm->identity_len); in eap_ttls_valid_session()
91 if (sm->identity) { in eap_ttls_valid_session()
94 if (sm->identity_len <= 255) in eap_ttls_valid_session()
95 id_len = sm->identity_len; in eap_ttls_valid_session()
99 wpabuf_put_data(buf, sm->identity, id_len); in eap_ttls_valid_session()
331 static u8 * eap_ttls_implicit_challenge(struct eap_sm *sm, in eap_ttls_implicit_challenge() argument
334 return eap_server_tls_derive_key(sm, &data->ssl, "ttls challenge", in eap_ttls_implicit_challenge()
[all …]
Deap_server_fast.c22 static void eap_fast_reset(struct eap_sm *sm, void *priv);
71 static int eap_fast_process_phase2_start(struct eap_sm *sm,
111 static enum eap_type eap_fast_req_failure(struct eap_sm *sm, in eap_fast_req_failure() argument
272 static void eap_fast_derive_key_auth(struct eap_sm *sm, in eap_fast_derive_key_auth() argument
281 sks = eap_fast_derive_key(sm->cfg->ssl_ctx, data->ssl.conn, in eap_fast_derive_key_auth()
302 static void eap_fast_derive_key_provisioning(struct eap_sm *sm, in eap_fast_derive_key_provisioning() argument
307 eap_fast_derive_key(sm->cfg->ssl_ctx, data->ssl.conn, in eap_fast_derive_key_provisioning()
333 static int eap_fast_get_phase2_key(struct eap_sm *sm, in eap_fast_get_phase2_key() argument
351 if ((key = data->phase2_method->getKey(sm, data->phase2_priv, in eap_fast_get_phase2_key()
378 static int eap_fast_update_icmk(struct eap_sm *sm, struct eap_fast_data *data) in eap_fast_update_icmk() argument
[all …]
/external/wpa_supplicant_8/src/eapol_auth/
Deapol_auth_sm.c23 #define STATE_MACHINE_ADDR sm->addr
30 sm->eapol->cb.set_port_authorized(sm->eapol->conf.ctx, sm->sta, 1)
32 sm->eapol->cb.set_port_authorized(sm->eapol->conf.ctx, sm->sta, 0)
35 #define txCannedFail() eapol_auth_tx_canned_eap(sm, 0)
36 #define txCannedSuccess() eapol_auth_tx_canned_eap(sm, 1)
37 #define txReq() eapol_auth_tx_req(sm)
38 #define abortAuth() sm->eapol->cb.abort_auth(sm->eapol->conf.ctx, sm->sta)
39 #define txKey() sm->eapol->cb.tx_key(sm->eapol->conf.ctx, sm->sta)
43 static void eapol_sm_step_run(struct eapol_state_machine *sm);
45 static void eapol_auth_initialize(struct eapol_state_machine *sm);
[all …]
Deapol_auth_dump.c121 int eapol_auth_dump_state(struct eapol_state_machine *sm, char *buf, in eapol_auth_dump_state() argument
132 sm->aWhile, sm->quietWhile, sm->reAuthWhen); in eapol_auth_dump_state()
158 _SB(sm->authAbort), in eapol_auth_dump_state()
159 _SB(sm->authFail), in eapol_auth_dump_state()
160 port_state_txt(sm->authPortStatus), in eapol_auth_dump_state()
161 _SB(sm->authStart), in eapol_auth_dump_state()
162 _SB(sm->authTimeout), in eapol_auth_dump_state()
163 _SB(sm->authSuccess), in eapol_auth_dump_state()
164 _SB(sm->eap_if->eapFail), in eapol_auth_dump_state()
165 _SB(sm->eapolEap), in eapol_auth_dump_state()
[all …]
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa.c53 int wpa_eapol_key_send(struct wpa_sm *sm, struct wpa_ptk *ptk, in wpa_eapol_key_send() argument
58 size_t mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_eapol_key_send()
62 MAC2STR(dest), ver, (int) mic_len, sm->key_mgmt); in wpa_eapol_key_send()
63 if (is_zero_ether_addr(dest) && is_zero_ether_addr(sm->bssid)) { in wpa_eapol_key_send()
68 if (wpa_sm_get_bssid(sm, sm->bssid) < 0) { in wpa_eapol_key_send()
69 wpa_dbg(sm->ctx->msg_ctx, MSG_DEBUG, in wpa_eapol_key_send()
73 dest = sm->bssid; in wpa_eapol_key_send()
74 wpa_dbg(sm->ctx->msg_ctx, MSG_DEBUG, in wpa_eapol_key_send()
86 wpa_eapol_key_mic(ptk->kck, ptk->kck_len, sm->key_mgmt, ver, in wpa_eapol_key_send()
88 wpa_msg(sm->ctx->msg_ctx, MSG_ERROR, in wpa_eapol_key_send()
[all …]
Dwpa_ft.c28 static void wpa_ft_pasn_store_r1kh(struct wpa_sm *sm, const u8 *bssid);
30 static void wpa_ft_pasn_store_r1kh(struct wpa_sm *sm, const u8 *bssid) in wpa_ft_pasn_store_r1kh() argument
36 int wpa_derive_ptk_ft(struct wpa_sm *sm, const unsigned char *src_addr, in wpa_derive_ptk_ft() argument
41 int use_sha384 = wpa_key_mgmt_sha384(sm->key_mgmt); in wpa_derive_ptk_ft()
45 if (sm->xxkey_len > 0) { in wpa_derive_ptk_ft()
46 mpmk = sm->xxkey; in wpa_derive_ptk_ft()
47 mpmk_len = sm->xxkey_len; in wpa_derive_ptk_ft()
48 } else if (sm->cur_pmksa) { in wpa_derive_ptk_ft()
49 mpmk = sm->cur_pmksa->pmk; in wpa_derive_ptk_ft()
50 mpmk_len = sm->cur_pmksa->pmk_len; in wpa_derive_ptk_ft()
[all …]
Dpreauth.c37 void pmksa_candidate_free(struct wpa_sm *sm) in pmksa_candidate_free() argument
41 if (sm == NULL) in pmksa_candidate_free()
44 dl_list_for_each_safe(entry, n, &sm->pmksa_candidates, in pmksa_candidate_free()
64 struct wpa_sm *sm = ctx; in rsn_preauth_receive() local
69 if (sm->preauth_eapol == NULL || in rsn_preauth_receive()
70 is_zero_ether_addr(sm->preauth_bssid) || in rsn_preauth_receive()
71 os_memcmp(sm->preauth_bssid, src_addr, ETH_ALEN) != 0) { in rsn_preauth_receive()
78 eapol_sm_rx_eapol(sm->preauth_eapol, src_addr, buf, len); in rsn_preauth_receive()
86 struct wpa_sm *sm = ctx; in rsn_preauth_eapol_cb() local
104 sm->pmk_len = pmk_len; in rsn_preauth_eapol_cb()
[all …]
Dwpa_i.h222 static inline void wpa_sm_set_state(struct wpa_sm *sm, enum wpa_states state) in wpa_sm_set_state() argument
224 WPA_ASSERT(sm->ctx->set_state); in wpa_sm_set_state()
225 sm->ctx->set_state(sm->ctx->ctx, state); in wpa_sm_set_state()
228 static inline enum wpa_states wpa_sm_get_state(struct wpa_sm *sm) in wpa_sm_get_state() argument
230 WPA_ASSERT(sm->ctx->get_state); in wpa_sm_get_state()
231 return sm->ctx->get_state(sm->ctx->ctx); in wpa_sm_get_state()
234 static inline void wpa_sm_deauthenticate(struct wpa_sm *sm, u16 reason_code) in wpa_sm_deauthenticate() argument
236 WPA_ASSERT(sm->ctx->deauthenticate); in wpa_sm_deauthenticate()
237 sm->ctx->deauthenticate(sm->ctx->ctx, reason_code); in wpa_sm_deauthenticate()
240 static inline int wpa_sm_set_key(struct wpa_sm *sm, enum wpa_alg alg, in wpa_sm_set_key() argument
[all …]
Dwpa.h141 void wpa_sm_deinit(struct wpa_sm *sm);
142 void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid);
143 void wpa_sm_notify_disassoc(struct wpa_sm *sm);
144 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
146 void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm);
147 void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth);
148 void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx);
149 void wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config);
150 void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr);
151 void wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname,
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap.c40 static bool eap_sm_allowMethod(struct eap_sm *sm, int vendor,
42 static struct wpabuf * eap_sm_buildNak(struct eap_sm *sm, int id);
43 static void eap_sm_processIdentity(struct eap_sm *sm,
45 static void eap_sm_processNotify(struct eap_sm *sm, const struct wpabuf *req);
47 static void eap_sm_parseEapReq(struct eap_sm *sm, const struct wpabuf *req);
52 static void eap_sm_request(struct eap_sm *sm, enum wpa_ctrl_req_type field,
57 static bool eapol_get_bool(struct eap_sm *sm, enum eapol_bool_var var) in eapol_get_bool() argument
59 return sm->eapol_cb->get_bool(sm->eapol_ctx, var); in eapol_get_bool()
63 static void eapol_set_bool(struct eap_sm *sm, enum eapol_bool_var var, in eapol_set_bool() argument
66 sm->eapol_cb->set_bool(sm->eapol_ctx, var, value); in eapol_set_bool()
[all …]
Deap.h332 void eap_peer_sm_deinit(struct eap_sm *sm);
333 int eap_peer_sm_step(struct eap_sm *sm);
334 void eap_sm_abort(struct eap_sm *sm);
335 int eap_sm_get_status(struct eap_sm *sm, char *buf, size_t buflen,
337 const char * eap_sm_get_method_name(struct eap_sm *sm);
338 struct wpabuf * eap_sm_buildIdentity(struct eap_sm *sm, int id, int encrypted);
339 void eap_sm_request_identity(struct eap_sm *sm);
340 void eap_sm_request_password(struct eap_sm *sm);
341 void eap_sm_request_new_password(struct eap_sm *sm);
342 void eap_sm_request_pin(struct eap_sm *sm);
[all …]
/external/wpa_supplicant_8/src/ap/
Dwpa_auth.c38 #define STATE_MACHINE_ADDR sm->addr
42 static int wpa_sm_step(struct wpa_state_machine *sm);
46 static int wpa_aead_decrypt(struct wpa_state_machine *sm, struct wpa_ptk *ptk,
48 static struct wpabuf * fils_prepare_plainbuf(struct wpa_state_machine *sm,
54 static void wpa_request_new_ptk(struct wpa_state_machine *sm);
59 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce,
68 static int ieee80211w_kde_len(struct wpa_state_machine *sm);
69 static u8 * ieee80211w_kde_add(struct wpa_state_machine *sm, u8 *pos);
212 int (*cb)(struct wpa_state_machine *sm, void *ctx), in wpa_auth_for_each_sta() argument
364 struct wpa_state_machine *sm = timeout_ctx; in wpa_rekey_ptk() local
[all …]
/external/bc/tests/dc/errors/
D10.txt2 0sm[Nx]0sm[]zsWx[li]zsGx[Nfvfff[]zsm[]zsWx[li]zsPx[Nx]0sm[]zsdc
3 0sm[Nx]0sm[]x[li]zsGx[Nx]0sm[]zsdc
4 0sm[Nx]0sm[]zsWx[li]zsGx[Nx]0sm[]zsdc
5 0sm[Nx]0sm[]zsWx[li]zsGx[Nx]0sm[]zsW#! /bin/dc
6 0sm[Nx]0s_[]zsWx[li]zs^x[lili100>Nx]0sm[]zsWx[liNx]zsxx[li;rlilix]
8 0sm[Nx]0sm[]zsWx[li]zsPx[Nxx]0sm[]x[li]zsGx[Nx]0sm[]zsdc
9 0sm[Nx]0sm[]zsWx[li]zsGx[Nx]0sm[]zsW#!sdc
10 0sm[Nx]0sm[]zsWx[li]zsGx[Nx]0sm[]zsW#! /bin/dc
11 0sm[Nx]0s_@]zsWx[li]zs^x[lili100>Nx]0sm[]zsWx[liNx]zsxx[li;rlilix]
13 0sm[Nx]0sm[]zsWx[li]zsPx[Nx]0sm[]zsdc
[all …]
D09.txt2 0sm[Nx]0sm[]zsWx[li]zsGx[Nx]0sm[]zsdc
3 0sm[Nx]0sm[]zsWx[li]zsGx[Nx]0sm[]zsW#! /bin/dc
4 0sm[Nx]0s_[]zsWx[li]zs^x[lili100>Nx]0sm[]zsWx[liNx]zsxx[li;rlilix]
7 *sm[Nx]0sm[]zsWx[li]zsGx[Nx]0sm[]zsdc
8 0sm[Nx]0sm[]zsWx[li]zsGx[Nx]0sm[]x]zsxx#! /bin/dc
9 *sm[Nx]0sm[]zsWx[li]zsGx[Nx]0sm[]zsdc
10 0sm[Nx]0sm[]zsWx[li]zsGx[Nx]0sm[]zsW#! /bipR
/external/oboe/docs/reference/
Dtabs.css1sm{position:relative;z-index:9999}.sm,.sm ul,.sm li{display:block;list-style:none;margin:0;padding…
/external/tinyxml2/docs/
Dtabs.css1sm{position:relative;z-index:9999}.sm,.sm ul,.sm li{display:block;list-style:none;margin:0;padding…
/external/angle/third_party/vulkan_memory_allocator/docs/html/
Dtabs.css1sm{position:relative;z-index:9999}.sm,.sm ul,.sm li{display:block;list-style:none;margin:0;padding…
/external/libhevc/encoder/
Dvar_q_operator.c67 norm_a = norm32(a.sm); /* norm32 defined in ia_basic_ops32.h */ in mult32_var_q()
68 norm_b = norm32(b.sm); in mult32_var_q()
73 a.sm = shl32_sat(a.sm, norm_a); in mult32_var_q()
74 b.sm = shl32_sat(b.sm, norm_b); in mult32_var_q()
76 c->sm = mult32(a.sm, b.sm); /* mult32 defined in ia_basic_ops40.h */ in mult32_var_q()
86 c->sm = div32(a.sm, b.sm, &qoutient_q_format); /* div32 defined in ia_basic_ops32.h */ in div32_var_q()
100 norm_a = norm32(a.sm) - 1; /* norm32 defined in ia_basic_ops32.h */ in add32_var_q()
101 norm_b = norm32(b.sm) - 1; /* we normalise a & b only to 30t bit in add32_var_q()
110 b.sm = shl32_dir_sat(b.sm, norm_b); in add32_var_q()
111 a.sm = shr32_dir_sat(a.sm, ((a.e - b.e) - norm_b)); in add32_var_q()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dsparse_io.c60 static void free_sparse_blocks(struct sparse_map *sm) in free_sparse_blocks() argument
64 for (i = 0; i < sm->blocks_count; ++i) in free_sparse_blocks()
65 free(sm->blocks[i]); in free_sparse_blocks()
66 free(sm->blocks); in free_sparse_blocks()
67 sm->blocks = NULL; in free_sparse_blocks()
73 struct sparse_map *sm = priv; in sparse_import_segment() local
76 if (!nr_blocks || len % sm->block_size) in sparse_import_segment()
79 return sparse_write_blk(sm->channel, block, nr_blocks, data); in sparse_import_segment()
83 struct sparse_map *sm, io_channel io) in io_manager_import_sparse() argument
103 sm->block_size = sparse_file_block_size(sparse_file); in io_manager_import_sparse()
[all …]
/external/bc/tests/fuzzing/dc_inputs/
D10.txt2 0sm[Nx]0sm[]0s0x[li]0s0x[Nfvfff[]0sm[]zs0x[li]zs0x[Nx]0sm[]zs0c
3 0sm[Nx]0sm[]x[li]zs0x[Nx]0sm[]zs0c
4 0sm[Nx]0sm[]zs0x[li]zs0x[Nx]0sm[]zs0c
5 0sm[Nx]0sm[]zs0x[li]zs0x[Nx]0sm[]zs0#000000000
6 0sm[Nx]0s0[]zs0x[li]zs0x[0000000000]0sm[]zs0x[liNx]zs0x[li;0l0l0x]
8 0sm[Nx]0sm[]zs0x[li]zs0x[000]0sm[]x[li]zs0x[Nx]0sm[]zs0c
9 0sm[Nx]0sm[]zs0x[li]zs0x[Nx]0sm[]zs0#0000
10 0sm[Nx]0sm[]zs0x[li]zs0x[Nx]0sm[]zs0#000000000
11 0sm[Nx]0s_@]zs0x[li]s^x[0000000000]0s0[]zsW[0000]zsxx[000000000]
/external/wpa_supplicant_8/src/wps/
Dwps_upnp.c306 static int local_network_addr(struct upnp_wps_device_sm *sm, in local_network_addr() argument
309 return (addr->sin_addr.s_addr & sm->netmask.s_addr) == in local_network_addr()
310 (sm->ip_addr & sm->netmask.s_addr); in local_network_addr()
406 if (!local_network_addr(s->sm, addr)) { in subscr_addr_add_url()
481 static void upnp_wps_device_send_event(struct upnp_wps_device_sm *sm) in upnp_wps_device_send_event() argument
494 if (dl_list_empty(&sm->subscriptions)) { in upnp_wps_device_send_event()
500 if (now.sec != sm->last_event_sec) { in upnp_wps_device_send_event()
501 sm->last_event_sec = now.sec; in upnp_wps_device_send_event()
502 sm->num_events_in_sec = 1; in upnp_wps_device_send_event()
504 sm->num_events_in_sec++; in upnp_wps_device_send_event()
[all …]

12345678910>>...23