Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 48) sorted by relevance

12

/hostap-latest/src/crypto/
Dfips_prf_openssl.c31 SHA_CTX context; in sha1_transform() local
32 os_memset(&context, 0, sizeof(context)); in sha1_transform()
34 context.h[0] = state[0]; in sha1_transform()
35 context.h[1] = state[1]; in sha1_transform()
36 context.h[2] = state[2]; in sha1_transform()
37 context.h[3] = state[3]; in sha1_transform()
38 context.h[4] = state[4]; in sha1_transform()
39 SHA1_Transform(&context, data); in sha1_transform()
40 state[0] = context.h[0]; in sha1_transform()
41 state[1] = context.h[1]; in sha1_transform()
[all …]
Dsha1-internal.c161 void SHAPrintContext(SHA1_CTX *context, char *msg) in SHAPrintContext() argument
165 context->count[0], context->count[1], in SHAPrintContext()
166 context->state[0], in SHAPrintContext()
167 context->state[1], in SHAPrintContext()
168 context->state[2], in SHAPrintContext()
169 context->state[3], in SHAPrintContext()
170 context->state[4]); in SHAPrintContext()
234 void SHA1Init(SHA1_CTX* context) in SHA1Init() argument
237 context->state[0] = 0x67452301; in SHA1Init()
238 context->state[1] = 0xEFCDAB89; in SHA1Init()
[all …]
Dtls_wolfssl.c72 struct tls_context *context; member
108 struct tls_context *context = os_zalloc(sizeof(*context)); in tls_context_new() local
110 if (!context) in tls_context_new()
114 context->event_cb = conf->event_cb; in tls_context_new()
115 context->cb_ctx = conf->cb_ctx; in tls_context_new()
116 context->cert_in_cb = conf->cert_in_cb; in tls_context_new()
119 return context; in tls_context_new()
229 struct tls_context *context; in tls_init() local
237 context = tls_context_new(conf); in tls_init()
238 if (!context) in tls_init()
[all …]
Dmd5_i.h18 void MD5Init(struct MD5Context *context);
19 void MD5Update(struct MD5Context *context, unsigned char const *buf,
21 void MD5Final(unsigned char digest[16], struct MD5Context *context);
Dsha1_i.h18 void SHA1Init(struct SHA1Context *context);
19 void SHA1Update(struct SHA1Context *context, const void *data, u32 len);
20 void SHA1Final(unsigned char digest[20], struct SHA1Context *context);
Dtls_openssl.c240 struct tls_context *context; member
287 struct tls_context *context = os_zalloc(sizeof(*context)); in tls_context_new() local
288 if (context == NULL) in tls_context_new()
290 dl_list_init(&context->sessions); in tls_context_new()
292 context->event_cb = conf->event_cb; in tls_context_new()
293 context->cb_ctx = conf->cb_ctx; in tls_context_new()
294 context->cert_in_cb = conf->cert_in_cb; in tls_context_new()
296 return context; in tls_context_new()
771 if (conn->context->event_cb != NULL) { in ssl_info_cb()
773 struct tls_context *context = conn->context; in ssl_info_cb() local
[all …]
Dtls_internal.c407 const char *label, const u8 *context, in tls_connection_prf() argument
427 ret = tlsv1_client_prf(conn->client, label, context, in tls_connection_prf()
434 ret = tlsv1_server_prf(conn->server, label, context, in tls_connection_prf()
448 const char *label, const u8 *context, in tls_connection_export_key() argument
451 return tls_connection_prf(tls_ctx, conn, label, context, context_len, in tls_connection_export_key()
/hostap-latest/src/pae/
Dieee802_1x_key.c35 const char *label, const u8 *context, in aes_kdf() argument
63 os_memcpy(buf + lab_len + 2, context, ctx_len); in aes_kdf()
94 u8 context[2 * ETH_ALEN]; in ieee802_1x_cak_aes_cmac() local
96 joint_two_mac(mac1, mac2, context); in ieee802_1x_cak_aes_cmac()
98 context, sizeof(context) * 8, 8 * cak_bytes, cak); in ieee802_1x_cak_aes_cmac()
113 u8 *context; in ieee802_1x_ckn_aes_cmac() local
116 context = os_zalloc(ctx_len); in ieee802_1x_ckn_aes_cmac()
117 if (!context) { in ieee802_1x_ckn_aes_cmac()
121 os_memcpy(context, sid, sid_bytes); in ieee802_1x_ckn_aes_cmac()
122 joint_two_mac(mac1, mac2, context + sid_bytes); in ieee802_1x_ckn_aes_cmac()
[all …]
/hostap-latest/src/eap_server/
Deap_server_tls.c337 const u8 *context = NULL; in eap_tls_getKey() local
345 context = eap_tls13_context; in eap_tls_getKey()
351 context, context_len, in eap_tls_getKey()
372 const u8 *context = NULL; in eap_tls_get_emsk() local
380 context = eap_tls13_context; in eap_tls_get_emsk()
386 context, context_len, in eap_tls_get_emsk()
Deap_server_tls_common.c116 const char *label, const u8 *context, in eap_server_tls_derive_key() argument
126 context, context_len, out, len)) { in eap_server_tls_derive_key()
157 const u8 context[] = { eap_type }; in eap_server_tls_derive_session_id() local
168 sm, data, "EXPORTER_EAP_TLS_Method-Id", context, 1, 64); in eap_server_tls_derive_session_id()
Deap_server_peap.c334 const u8 *context = NULL; in eap_peap_derive_cmk() local
339 context = eap_tls13_context; in eap_peap_derive_cmk()
351 context, context_len, in eap_peap_derive_cmk()
1353 const u8 *context = NULL; in eap_peap_getKey() local
1389 context = eap_tls13_context; in eap_peap_getKey()
1397 label, context, context_len, in eap_peap_getKey()
1418 const u8 *context = NULL; in eap_peap_get_emsk() local
1431 context = eap_tls13_context; in eap_peap_get_emsk()
1439 label, context, context_len, in eap_peap_get_emsk()
Deap_server_ttls.c1277 const u8 *context = NULL; in eap_ttls_getKey() local
1285 context = eap_tls13_context; in eap_ttls_getKey()
1292 label, context, context_len, in eap_ttls_getKey()
1331 const u8 *context = NULL; in eap_ttls_get_emsk() local
1339 context = eap_tls13_context; in eap_ttls_get_emsk()
1346 label, context, context_len, in eap_ttls_get_emsk()
Deap_tls_common.h84 const char *label, const u8 *context,
/hostap-latest/tests/fuzzing/tls-client/
Dtls-client.c19 struct context { struct
26 static struct wpabuf * read_msg(struct context *ctx) in read_msg() argument
57 struct context ctx; in LLVMFuzzerTestOneInput()
/hostap-latest/tests/fuzzing/tls-server/
Dtls-server.c19 struct context { struct
26 static struct wpabuf * read_msg(struct context *ctx) in read_msg() argument
57 struct context ctx; in LLVMFuzzerTestOneInput()
/hostap-latest/wpa_supplicant/
Dmesh_rsn.c446 u8 context[RSN_SELECTOR_LEN + 2 * ETH_ALEN], *ptr = context; in mesh_rsn_derive_aek() local
468 context, sizeof(context), sta->aek, sizeof(sta->aek)); in mesh_rsn_derive_aek()
479 u8 context[2 * WPA_NONCE_LEN + 2 * 2 + RSN_SELECTOR_LEN + 2 * ETH_ALEN]; in mesh_rsn_derive_mtk() local
487 ptr = context; in mesh_rsn_derive_mtk()
529 "Temporal Key Derivation", context, sizeof(context), in mesh_rsn_derive_mtk()
/hostap-latest/wpa_supplicant/wpa_gui-qt4/lang/
Dwpa_gui_de.ts4 <context>
41 </context>
42 <context>
49 </context>
50 <context>
62 </context>
63 <context>
75 </context>
76 <context>
346 </context>
[all …]
/hostap-latest/src/eap_common/
Deap_teap_common.c175 u8 context[3]; in eap_teap_derive_imck() local
177 context[0] = 0; in eap_teap_derive_imck()
178 context[1] = 0; in eap_teap_derive_imck()
179 context[2] = 64; in eap_teap_derive_imck()
182 context, sizeof(context), imsk, 64) < 0) in eap_teap_derive_imck()
/hostap-latest/src/tls/
Dtlsv1_server.c474 const u8 *context, size_t context_len, in tlsv1_server_prf() argument
487 if (context) in tlsv1_server_prf()
504 if (context) { in tlsv1_server_prf()
508 os_memcpy(pos, context, context_len); in tlsv1_server_prf()
Dtlsv1_client.c550 const u8 *context, size_t context_len, in tlsv1_client_prf() argument
563 if (context) in tlsv1_client_prf()
580 if (context) { in tlsv1_client_prf()
584 os_memcpy(pos, context, context_len); in tlsv1_client_prf()
/hostap-latest/wpa_supplicant/dbus/
Ddbus-wpa_supplicant.conf12 <policy context="default">
/hostap-latest/src/eap_peer/
Deap_tls.c185 const u8 *context = NULL; in eap_tls_success() local
197 context = eap_tls13_context; in eap_tls_success()
213 context, context_len, in eap_tls_success()
Deap_tls_common.c386 const char *label, const u8 *context, in eap_peer_tls_derive_key() argument
396 context, context_len, out, len)) { in eap_peer_tls_derive_key()
427 const u8 context[] = { eap_type }; in eap_peer_tls_derive_session_id() local
438 sm, data, "EXPORTER_EAP_TLS_Method-Id", context, 1, 64); in eap_peer_tls_derive_session_id()
/hostap-latest/tests/hwsim/vm/
Ddbus.conf12 <policy context="default">
/hostap-latest/src/utils/
Dcommon.c1095 char * str_token(char *str, const char *delim, char **context) in str_token() argument
1097 char *token = (char *) cstr_token(str, delim, (const char **) context); in str_token()
1099 if (token && **context) in str_token()
1100 *(*context)++ = '\0'; in str_token()

12