Home
last modified time | relevance | path

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

/hostap-latest/src/crypto/
Dtls_internal.c466 const struct wpabuf *in_data, in tls_connection_handshake() argument
469 return tls_connection_handshake2(tls_ctx, conn, in_data, appl_data, in tls_connection_handshake()
476 const struct wpabuf *in_data, in tls_connection_handshake2() argument
490 in_data ? wpabuf_head(in_data) : NULL, in tls_connection_handshake2()
491 in_data ? wpabuf_len(in_data) : 0, in tls_connection_handshake2()
520 const struct wpabuf *in_data, in tls_connection_server_handshake() argument
534 res = tlsv1_server_handshake(conn->server, wpabuf_head(in_data), in tls_connection_server_handshake()
535 wpabuf_len(in_data), &res_len); in tls_connection_server_handshake()
555 const struct wpabuf *in_data) in tls_connection_encrypt() argument
561 buf = wpabuf_alloc(wpabuf_len(in_data) + 300); in tls_connection_encrypt()
[all …]
Dtls_none.c113 const struct wpabuf *in_data, in tls_connection_handshake() argument
122 const struct wpabuf *in_data, in tls_connection_server_handshake() argument
131 const struct wpabuf *in_data) in tls_connection_encrypt() argument
139 const struct wpabuf *in_data) in tls_connection_decrypt() argument
Dtls.h457 const struct wpabuf *in_data,
462 const struct wpabuf *in_data,
478 const struct wpabuf *in_data,
494 const struct wpabuf *in_data);
509 const struct wpabuf *in_data);
513 const struct wpabuf *in_data,
Dtls_wolfssl.c50 const struct wpabuf *in_data; member
127 in->in_data = buf; in wolfssl_reset_in_data()
148 if (get > (wpabuf_len(data->in_data) - data->consumed)) in wolfssl_receive_cb()
149 get = wpabuf_len(data->in_data) - data->consumed; in wolfssl_receive_cb()
151 os_memcpy(buf, wpabuf_head_u8(data->in_data) + data->consumed, get); in wolfssl_receive_cb()
1655 const struct wpabuf *in_data, in wolfssl_handshake() argument
1746 const struct wpabuf *in_data, in wolfssl_connection_handshake() argument
1751 wolfssl_reset_in_data(&conn->input, in_data); in wolfssl_connection_handshake()
1756 out_data = wolfssl_handshake(conn, in_data, server); in wolfssl_connection_handshake()
1764 if (appl_data && in_data) in wolfssl_connection_handshake()
[all …]
Dtls_gnutls.c1449 const struct wpabuf *in_data, in tls_connection_handshake() argument
1459 if (in_data && wpabuf_len(in_data) > 0) { in tls_connection_handshake()
1466 conn->pull_buf = wpabuf_dup(in_data); in tls_connection_handshake()
1570 const struct wpabuf *in_data, in tls_connection_server_handshake() argument
1573 return tls_connection_handshake(tls_ctx, conn, in_data, appl_data); in tls_connection_server_handshake()
1579 const struct wpabuf *in_data) in tls_connection_encrypt() argument
1584 res = gnutls_record_send(conn->session, wpabuf_head(in_data), in tls_connection_encrypt()
1585 wpabuf_len(in_data)); in tls_connection_encrypt()
1600 const struct wpabuf *in_data) in tls_connection_decrypt() argument
1611 conn->pull_buf = wpabuf_dup(in_data); in tls_connection_decrypt()
[all …]
Dtls_mbedtls_alt.c592 static int tls_pull_buf_append(struct tls_connection *conn, const struct wpabuf *in_data) in tls_pull_buf_append() argument
595 return tls_wpabuf_resize_put_data(&conn->pull_buf, wpabuf_head(in_data), wpabuf_len(in_data)); in tls_pull_buf_append()
2197 const struct wpabuf *in_data, in tls_connection_handshake() argument
2203 if (in_data && wpabuf_len(in_data)) in tls_connection_handshake()
2208 if (!tls_pull_buf_append(conn, in_data)) in tls_connection_handshake()
2315 const struct wpabuf *in_data, in tls_connection_server_handshake() argument
2319 return tls_connection_handshake(tls_ctx, conn, in_data, appl_data); in tls_connection_server_handshake()
2322 …f *tls_connection_encrypt(void *tls_ctx, struct tls_connection *conn, const struct wpabuf *in_data) in tls_connection_encrypt() argument
2324 int res = mbedtls_ssl_write(&conn->ssl, wpabuf_head_u8(in_data), wpabuf_len(in_data)); in tls_connection_encrypt()
2336 …f *tls_connection_decrypt(void *tls_ctx, struct tls_connection *conn, const struct wpabuf *in_data) in tls_connection_decrypt() argument
[all …]
Dtls_openssl.c4498 openssl_handshake(struct tls_connection *conn, const struct wpabuf *in_data) in openssl_handshake() argument
4508 if (in_data && wpabuf_len(in_data) > 0 && in openssl_handshake()
4509 BIO_write(conn->ssl_in, wpabuf_head(in_data), wpabuf_len(in_data)) in openssl_handshake()
4662 const struct wpabuf *in_data, in openssl_connection_handshake() argument
4670 out_data = openssl_handshake(conn, in_data); in openssl_connection_handshake()
4699 if (appl_data && in_data) in openssl_connection_handshake()
4701 wpabuf_len(in_data)); in openssl_connection_handshake()
4720 const struct wpabuf *in_data, in tls_connection_handshake() argument
4723 return openssl_connection_handshake(conn, in_data, appl_data); in tls_connection_handshake()
4729 const struct wpabuf *in_data, in tls_connection_server_handshake() argument
[all …]
/hostap-latest/src/tls/
Dtlsv1_record.c279 const u8 *in_data, size_t in_len, in tlsv1_record_receive() argument
294 in_data, in_len); in tlsv1_record_receive()
298 ct = in_data[0]; in tlsv1_record_receive()
299 rlen = WPA_GET_BE16(in_data + 3); in tlsv1_record_receive()
301 "length %d", ct, in_data[1], in_data[2], (int) rlen); in tlsv1_record_receive()
308 if (in_data[1] != 0x03) { in tlsv1_record_receive()
310 "%u.%u", in_data[1], in_data[2]); in tlsv1_record_receive()
323 in_data += TLS_RECORD_HEADER_LEN; in tlsv1_record_receive()
334 in_data, rlen); in tlsv1_record_receive()
357 if (crypto_cipher_decrypt(rl->read_cbc, in_data, in tlsv1_record_receive()
[all …]
Dtlsv1_client_read.c23 const u8 *in_data, size_t *in_len);
25 const u8 *in_data, size_t *in_len);
27 const u8 *in_data, size_t *in_len);
79 const u8 *in_data, size_t *in_len) in tls_process_server_hello() argument
94 pos = in_data; in tls_process_server_hello()
265 *in_len = end - in_data; in tls_process_server_hello()
355 const u8 *in_data, size_t *in_len) in tls_process_certificate() argument
371 pos = in_data; in tls_process_certificate()
395 return tls_process_server_key_exchange(conn, ct, in_data, in tls_process_certificate()
398 return tls_process_certificate_request(conn, ct, in_data, in tls_process_certificate()
[all …]
Dtlsv1_server_read.c24 const u8 *in_data, size_t *in_len);
26 u8 ct, const u8 *in_data,
122 const u8 *in_data, size_t *in_len) in tls_process_client_hello() argument
139 pos = in_data; in tls_process_client_hello()
381 *in_len = end - in_data; in tls_process_client_hello()
397 const u8 *in_data, size_t *in_len) in tls_process_certificate() argument
413 pos = in_data; in tls_process_certificate()
445 return tls_process_client_key_exchange(conn, ct, in_data, in tls_process_certificate()
590 *in_len = end - in_data; in tls_process_certificate()
808 const u8 *in_data, size_t *in_len) in tls_process_client_key_exchange() argument
[all …]
Dtlsv1_client.c164 const u8 *in_data, size_t in_len, in tlsv1_client_handshake() argument
191 wpabuf_put_data(conn->partial_input, in_data, in_len); in tlsv1_client_handshake()
192 in_data = wpabuf_head(conn->partial_input); in tlsv1_client_handshake()
196 if (in_data == NULL || in_len == 0) in tlsv1_client_handshake()
199 pos = in_data; in tlsv1_client_handshake()
200 end = in_data + in_len; in tlsv1_client_handshake()
298 const u8 *in_data, size_t in_len, in tlsv1_client_encrypt() argument
304 in_data, in_len); in tlsv1_client_encrypt()
307 out_data, out_len, in_data, in_len, &rlen) < 0) { in tlsv1_client_encrypt()
331 const u8 *in_data, size_t in_len, in tlsv1_client_decrypt() argument
[all …]
Dtlsv1_server.c133 const u8 *in_data, size_t in_len, in tlsv1_server_handshake() argument
141 if (in_data == NULL || in_len == 0) { in tlsv1_server_handshake()
146 pos = in_data; in tlsv1_server_handshake()
147 end = in_data + in_len; in tlsv1_server_handshake()
228 const u8 *in_data, size_t in_len, in tlsv1_server_encrypt() argument
234 in_data, in_len); in tlsv1_server_encrypt()
237 out_data, out_len, in_data, in_len, &rlen) < 0) { in tlsv1_server_encrypt()
261 const u8 *in_data, size_t in_len, in tlsv1_server_decrypt() argument
269 pos = in_data; in tlsv1_server_decrypt()
270 in_end = in_data + in_len; in tlsv1_server_decrypt()
Dtlsv1_server.h25 const u8 *in_data, size_t in_len, size_t *out_len);
27 const u8 *in_data, size_t in_len,
30 const u8 *in_data, size_t in_len,
Dtlsv1_client.h25 const u8 *in_data, size_t in_len,
29 const u8 *in_data, size_t in_len,
32 const u8 *in_data, size_t in_len,
Dtlsv1_record.h68 const u8 *in_data, size_t in_len,
/hostap-latest/src/eap_peer/
Deap_tls_common.c476 const struct wpabuf *in_data) in eap_peer_tls_reassemble_fragment() argument
481 in_len = in_data ? wpabuf_len(in_data) : 0; in eap_peer_tls_reassemble_fragment()
519 if (in_data) in eap_peer_tls_reassemble_fragment()
520 wpabuf_put_buf(data->tls_in, in_data); in eap_peer_tls_reassemble_fragment()
546 struct eap_ssl_data *data, const struct wpabuf *in_data, in eap_peer_tls_data_reassemble() argument
551 if (data->tls_in_left > wpabuf_len(in_data) || data->tls_in) { in eap_peer_tls_data_reassemble()
553 int res = eap_peer_tls_reassemble_fragment(data, in_data); in eap_peer_tls_data_reassemble()
564 data->tls_in = wpabuf_dup(in_data); in eap_peer_tls_data_reassemble()
583 const struct wpabuf *in_data, in eap_tls_process_input() argument
590 msg = eap_peer_tls_data_reassemble(data, in_data, &need_more_input); in eap_tls_process_input()
[all …]
Deap_tls_common.h116 u8 id, const struct wpabuf *in_data,
132 const struct wpabuf *in_data,
136 const struct wpabuf *in_data,
Deap_ttls.c1450 const struct wpabuf *in_data, in eap_ttls_decrypt() argument
1461 in_data ? (unsigned long) wpabuf_len(in_data) : 0); in eap_ttls_decrypt()
1479 if ((in_data == NULL || wpabuf_len(in_data) == 0) && in eap_ttls_decrypt()
1486 if (in_data == NULL || wpabuf_len(in_data) == 0) { in eap_ttls_decrypt()
1493 retval = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_ttls_decrypt()
1539 const struct wpabuf *in_data, in eap_ttls_process_handshake() argument
1572 in_data, out_data); in eap_ttls_process_handshake()
1620 res = eap_ttls_decrypt(sm, data, ret, identifier, in_data, in eap_ttls_process_handshake()
Deap_peap.c795 const struct wpabuf *in_data, in eap_peap_decrypt() argument
805 " Phase 2", (unsigned long) wpabuf_len(in_data)); in eap_peap_decrypt()
818 if (wpabuf_len(in_data) == 0 && sm->workaround && in eap_peap_decrypt()
830 } else if (wpabuf_len(in_data) == 0) { in eap_peap_decrypt()
837 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_peap_decrypt()
Deap_fast.c1302 const struct wpabuf *in_data, in eap_fast_decrypt() argument
1309 " Phase 2", (unsigned long) wpabuf_len(in_data)); in eap_fast_decrypt()
1322 if (wpabuf_len(in_data) == 0) { in eap_fast_decrypt()
1329 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_fast_decrypt()
Deap_teap.c1503 const struct wpabuf *in_data, in eap_teap_decrypt() argument
1511 (unsigned long) wpabuf_len(in_data)); in eap_teap_decrypt()
1524 if (wpabuf_len(in_data) == 0) { in eap_teap_decrypt()
1540 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_teap_decrypt()
/hostap-latest/src/eap_server/
Deap_server_peap.c709 struct wpabuf *in_data) in eap_peap_process_phase2_tlv() argument
717 pos = eap_hdr_validate(EAP_VENDOR_IETF, EAP_TYPE_TLV, in_data, &left); in eap_peap_process_phase2_tlv()
829 struct wpabuf *in_data) in eap_peap_process_phase2_soh() argument
839 pos = eap_hdr_validate(EAP_VENDOR_MICROSOFT, 0x21, in_data, &left); in eap_peap_process_phase2_soh()
960 struct wpabuf *in_data) in eap_peap_process_phase2_response() argument
969 eap_peap_process_phase2_tlv(sm, data, in_data); in eap_peap_process_phase2_response()
975 eap_peap_process_phase2_soh(sm, data, in_data); in eap_peap_process_phase2_response()
986 hdr = wpabuf_head(in_data); in eap_peap_process_phase2_response()
989 if (wpabuf_len(in_data) > sizeof(*hdr) && *pos == EAP_TYPE_NAK) { in eap_peap_process_phase2_response()
990 left = wpabuf_len(in_data) - sizeof(*hdr); in eap_peap_process_phase2_response()
[all …]
Deap_server_fast.c966 u8 *in_data, size_t in_len) in eap_fast_process_phase2_response() argument
983 hdr = (struct eap_hdr *) in_data; in eap_fast_process_phase2_response()
1019 wpabuf_set(&buf, in_data, in_len); in eap_fast_process_phase2_response()
1100 u8 *in_data, size_t in_len) in eap_fast_process_phase2_eap() argument
1105 hdr = (struct eap_hdr *) in_data; in eap_fast_process_phase2_eap()
1257 struct wpabuf *in_data) in eap_fast_process_phase2_tlvs() argument
1262 if (eap_fast_parse_tlvs(in_data, &tlv) < 0) { in eap_fast_process_phase2_tlvs()
Deap_server_teap.c1071 u8 *in_data, size_t in_len, in eap_teap_process_phase2_response() argument
1090 hdr = (struct eap_hdr *) in_data; in eap_teap_process_phase2_response()
1127 wpabuf_set(&buf, in_data, in_len); in eap_teap_process_phase2_response()
1219 u8 *in_data, size_t in_len, in eap_teap_process_phase2_eap() argument
1225 hdr = (struct eap_hdr *) in_data; in eap_teap_process_phase2_eap()
1261 u8 *in_data, size_t in_len, in eap_teap_process_basic_auth_resp() argument
1275 pos = in_data; in eap_teap_process_basic_auth_resp()
1533 struct wpabuf *in_data) in eap_teap_process_phase2_tlvs() argument
1539 if (eap_teap_parse_tlvs(in_data, &tlv) < 0) { in eap_teap_process_phase2_tlvs()
Deap_server_ttls.c852 u8 *in_data, size_t in_len) in eap_ttls_process_phase2_eap_response() argument
869 hdr = (struct eap_hdr *) in_data; in eap_ttls_process_phase2_eap_response()
900 wpabuf_set(&buf, in_data, in_len); in eap_ttls_process_phase2_eap_response()