Home
last modified time | relevance | path

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

12

/hostap-3.6.0/src/tls/
Dasn1.h52 unsigned int tag, length; member
79 void asn1_put_hdr(struct wpabuf *buf, u8 class, int constructed, u8 tag,
86 struct wpabuf * asn1_encaps(struct wpabuf *buf, u8 class, u8 tag);
91 hdr->tag == ASN1_TAG_OID; in asn1_is_oid()
97 hdr->tag == ASN1_TAG_BOOLEAN; in asn1_is_boolean()
103 hdr->tag == ASN1_TAG_INTEGER; in asn1_is_integer()
109 hdr->tag == ASN1_TAG_ENUMERATED; in asn1_is_enumerated()
115 hdr->tag == ASN1_TAG_SEQUENCE; in asn1_is_sequence()
121 hdr->tag == ASN1_TAG_SET; in asn1_is_set()
127 hdr->tag == ASN1_TAG_OCTETSTRING; in asn1_is_octetstring()
[all …]
Dasn1.c130 if (hdr->tag == ASN1_TAG_BOOLEAN && !asn1_valid_der_boolean(hdr)) in asn1_valid_der()
132 if (hdr->tag == ASN1_TAG_NULL && hdr->length != 0) in asn1_valid_der()
137 (hdr->tag == ASN1_TAG_BOOLEAN || in asn1_valid_der()
138 hdr->tag == ASN1_TAG_INTEGER || in asn1_valid_der()
139 hdr->tag == ASN1_TAG_NULL || in asn1_valid_der()
140 hdr->tag == ASN1_TAG_OID || in asn1_valid_der()
141 hdr->tag == ANS1_TAG_RELATIVE_OID || in asn1_valid_der()
142 hdr->tag == ASN1_TAG_REAL || in asn1_valid_der()
143 hdr->tag == ASN1_TAG_ENUMERATED || in asn1_valid_der()
144 hdr->tag == ASN1_TAG_BITSTRING || in asn1_valid_der()
[all …]
Dtlsv1_client_ocsp.c246 cert_status = hdr.tag; in tls_process_ocsp_single_response()
256 x509_parse_time(hdr.payload, hdr.length, hdr.tag, &update) < 0) { in tls_process_ocsp_single_response()
277 x509_parse_time(hdr.payload, hdr.length, hdr.tag, in tls_process_ocsp_single_response()
507 if (hdr.tag == 1) { in tls_process_basic_ocsp_response()
513 } else if (hdr.tag == 2) { in tls_process_basic_ocsp_response()
533 hdr.tag); in tls_process_basic_ocsp_response()
540 x509_parse_time(hdr.payload, hdr.length, hdr.tag, in tls_process_basic_ocsp_response()
Dx509v3.c358 hdr.tag); in x509_parse_name()
719 x509_parse_time(hdr.payload, hdr.length, hdr.tag, in x509_parse_validity()
731 x509_parse_time(hdr.payload, hdr.length, hdr.tag, in x509_parse_validity()
1012 switch (hdr.tag) { in x509_parse_ext_alt_name()
1392 if (hdr.tag == ASN1_TAG_BOOLEAN) { in x509_parse_extension()
1404 hdr.tag == ASN1_TAG_OCTETSTRING))) { in x509_parse_extension()
1581 if (hdr.tag == 1) { in x509_parse_tbs_certificate()
1598 if (hdr.tag == 2) { in x509_parse_tbs_certificate()
1615 if (hdr.tag != 3) { in x509_parse_tbs_certificate()
1618 hdr.constructed, hdr.tag); in x509_parse_tbs_certificate()
/hostap-3.6.0/hostapd/
Dwps-ap-nfc.py173 def wps_tag_read(tag): argument
175 if len(tag.ndef.message):
176 for record in tag.ndef.message:
180 success = wpas_tag_read(tag.ndef.message)
191 def rdwr_connected_write(tag): argument
192 summary("Tag found - writing - " + str(tag))
194 tag.ndef.message = str(write_data)
202 while write_wait_remove and tag.is_present:
231 def rdwr_connected(tag): argument
233 summary("Tag connected: " + str(tag))
[all …]
Dhostapd.wpa_psk10 # An optional WPS tag can be added by prefixing the line with
11 # wps=<0/1> (default: 0). Any matching entry with that tag will be used when
DREADME-WPS299 WPS can be used with NFC-based configuration method. An NFC tag
301 authenticate the connection instead of the PIN. In addition, an NFC tag
305 When the AP acts as an Enrollee, a local NFC tag with a password token
324 tag with an external program. Once written, the NFC configuration token
328 When the NFC device on the AP reads an NFC tag with a MIME media type
335 If the NFC tag contains a password token, the token is added to the
/hostap-3.6.0/wpa_supplicant/examples/
Dwps-nfc.py295 def wps_tag_read(tag, wait_remove=True): argument
297 if len(tag.ndef.message):
298 for record in tag.ndef.message:
302 success = wpas_tag_read(tag.ndef.message)
312 while tag.is_present:
318 def rdwr_connected_write(tag): argument
319 summary("Tag found - writing - " + str(tag))
321 tag.ndef.message = str(write_data)
329 while write_wait_remove and tag.is_present:
371 def rdwr_connected(tag): argument
[all …]
Dp2p-nfc.py109 def wpas_get_handover_sel(tag=False): argument
113 if tag:
395 def p2p_tag_read(tag): argument
397 if len(tag.ndef.message):
398 for record in tag.ndef.message:
402 success = wpas_tag_read(tag.ndef.message)
406 success = wpas_tag_read(tag.ndef.message)
417 def rdwr_connected_p2p_write(tag): argument
418 summary("Tag found - writing - " + str(tag))
420 tag.ndef.message = str(p2p_sel_data)
[all …]
Ddpp-nfc.py755 def dpp_tag_read(tag): argument
757 for record in tag.ndef.records:
781 def rdwr_connected_write_tag(tag): argument
782 summary("Tag found - writing - " + str(tag))
783 if not tag.ndef:
786 if not tag.ndef.is_writeable:
790 if tag.ndef.capacity < len(dpp_tag_data):
794 tag.ndef.records = dpp_tag_data
850 def rdwr_connected(tag): argument
852 summary("Tag connected: " + str(tag))
[all …]
/hostap-3.6.0/src/wps/
Dupnp_xml.c161 void xml_add_tagged_data(struct wpabuf *buf, const char *tag, const char *data) in xml_add_tagged_data() argument
163 wpabuf_printf(buf, "<%s>", tag); in xml_add_tagged_data()
165 wpabuf_printf(buf, "</%s>\n", tag); in xml_add_tagged_data()
194 const char *tag, *tagname, *end; in xml_get_first_item() local
203 if (xml_next_tag(doc, &tag, &tagname, &end)) in xml_get_first_item()
207 *tag != '/' && in xml_get_first_item()
Dupnp_xml.h17 void xml_add_tagged_data(struct wpabuf *buf, const char *tag,
Dhttp_server.h23 char * http_request_get_hdr_line(struct http_request *req, const char *tag);
Dhttp_client.h37 char * http_client_get_hdr_line(struct http_client *c, const char *tag);
Dhttpread.h115 char * httpread_hdr_line_get(struct httpread *h, const char *tag);
Dhttp_server.c187 char * http_request_get_hdr_line(struct http_request *req, const char *tag) in http_request_get_hdr_line() argument
189 return httpread_hdr_line_get(req->hread, tag); in http_request_get_hdr_line()
/hostap-3.6.0/src/crypto/
Daes_wrap.h43 u8 *data, size_t data_len, u8 *tag);
47 u8 *data, size_t data_len, const u8 *tag);
56 u8 *crypt, u8 *tag);
60 const u8 *aad, size_t aad_len, const u8 *tag,
64 const u8 *aad, size_t aad_len, u8 *tag);
Daes-eax.c30 u8 *data, size_t data_len, u8 *tag) in aes_128_eax_encrypt() argument
70 tag[i] = nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i]; in aes_128_eax_encrypt()
94 u8 *data, size_t data_len, const u8 *tag) in aes_128_eax_decrypt() argument
140 if (tag[i] != (nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i])) in aes_128_eax_decrypt()
Daes-gcm.c256 const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) in aes_gcm_ae() argument
275 aes_gctr(aes, J0, S, sizeof(S), tag); in aes_gcm_ae()
290 const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) in aes_gcm_ad() argument
313 if (os_memcmp_const(tag, T, 16) != 0) { in aes_gcm_ad()
323 const u8 *aad, size_t aad_len, u8 *tag) in aes_gmac() argument
326 tag); in aes_gmac()
Dcrypto_module_tests.c166 u8 tag[16]; member
231 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
244 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
259 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
311 u8 data[sizeof(msg)], tag[AES_BLOCK_SIZE]; in test_eax() local
315 data, sizeof(data), tag)) { in test_eax()
324 if (os_memcmp(tag, cipher + sizeof(data), AES_BLOCK_SIZE) != 0) { in test_eax()
331 data, sizeof(data), tag)) { in test_eax()
/hostap-3.6.0/tests/
Dtest-aes.c237 u8 k[32], aad[32], iv[64], t[16], tag[16]; in test_gcm() local
285 tmp, tag) < 0) { in test_gcm()
296 if (os_memcmp(tag, t, sizeof(tag)) != 0) { in test_gcm()
302 if (aes_gmac(k, k_len, iv, iv_len, aad, aad_len, tag) < in test_gcm()
309 if (os_memcmp(tag, t, sizeof(tag)) != 0) { in test_gcm()
/hostap-3.6.0/tests/fuzzing/asn1/
Dasn1.c63 hdr.tag, hdr.length); in asn1_parse()
75 switch (hdr.tag) { in asn1_parse()
167 hdr.tag); in asn1_parse()
/hostap-3.6.0/wpa_supplicant/
DREADME-WPS320 WPS can be used with NFC-based configuration method. An NFC tag
322 authenticate the connection instead of the PIN. In addition, an NFC tag
326 When the station acts as an Enrollee, a local NFC tag with a password
344 tag with an external program. Once written, the NFC configuration token
352 If the station includes NFC interface and reads an NFC tag with a MIME
359 If the NFC tag contains a configuration token, the network is added to
360 wpa_supplicant configuration. If the NFC tag contains a password token,
397 to be written to an NFC tag with an external program. Once written, the
/hostap-3.6.0/src/eap_peer/
Deap_psk.c185 const u8 *pchannel, *tag, *msg; in eap_psk_process_3() local
263 tag = pchannel; in eap_psk_process_3()
286 left, tag)) { in eap_psk_process_3()
/hostap-3.6.0/src/eap_server/
Deap_server_psk.c335 const u8 *pos, *tag; in eap_psk_process_4() local
369 tag = pos; in eap_psk_process_4()
379 tag)) { in eap_psk_process_4()

12