Home
last modified time | relevance | path

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

12

/freebsd/crypto/openssl/test/
H A Dquic_record_test_util.h36 || !TEST_size_t_eq(a->token_len, b->token_len) in cmp_pkt_hdr()
40 if (a->token_len > 0 && b->token_len > 0 in cmp_pkt_hdr()
41 && !TEST_mem_eq(a->token, a->token_len, b->token, b->token_len)) in cmp_pkt_hdr()
44 if ((a->token_len == 0 && !TEST_ptr_null(a->token)) in cmp_pkt_hdr()
45 || (b->token_len == 0 && !TEST_ptr_null(b->token))) in cmp_pkt_hdr()
H A Dquic_wire_test.c322 size_t token_len = 0; in encode_case_7_dec() local
326 &token_len), in encode_case_7_dec()
333 if (!TEST_mem_eq(token, token_len, in encode_case_7_dec()
H A Dquic_txp_test.c82 size_t token_len; member
550 h->frame.new_token.token_len, in check_cfq_new_token()
1369 if (!TEST_mem_eq(h.qrx_pkt->hdr->token, h.qrx_pkt->hdr->token_len, in run_script()
1411 &h.frame.new_token.token_len))) in run_script()
/freebsd/crypto/heimdal/lib/gssapi/krb5/
H A Dunwrap.c63 int token_len; in unwrap_des() local
66 token_len = 22 + 8 + 15; /* 45 */ in unwrap_des()
67 if (input_message_buffer->length < token_len) in unwrap_des()
70 token_len = input_message_buffer->length; in unwrap_des()
75 token_len, in unwrap_des()
237 int token_len; in unwrap_des3() local
240 token_len = 34 + 8 + 15; /* 57 */ in unwrap_des3()
241 if (input_message_buffer->length < token_len) in unwrap_des3()
244 token_len = input_message_buffer->length; in unwrap_des3()
249 token_len, in unwrap_des3()
/freebsd/crypto/openssl/ssl/quic/
H A Dquic_wire_pkt.c263 hdr->token_len = 0; in ossl_quic_wire_decode_pkt_hdr()
333 hdr->token_len = 0; in ossl_quic_wire_decode_pkt_hdr()
374 uint64_t token_len; in ossl_quic_wire_decode_pkt_hdr() local
376 if (!PACKET_get_quic_vlint(pkt, &token_len) in ossl_quic_wire_decode_pkt_hdr()
377 || token_len > SIZE_MAX in ossl_quic_wire_decode_pkt_hdr()
378 || !PACKET_get_bytes(pkt, &hdr->token, (size_t)token_len)) in ossl_quic_wire_decode_pkt_hdr()
381 hdr->token_len = (size_t)token_len; in ossl_quic_wire_decode_pkt_hdr()
382 if (token_len == 0) in ossl_quic_wire_decode_pkt_hdr()
386 hdr->token_len = 0; in ossl_quic_wire_decode_pkt_hdr()
585 if (!WPACKET_quic_write_vlint(pkt, hdr->token_len) in ossl_quic_wire_encode_pkt_hdr()
[all …]
H A Dquic_trace.c73 static void put_token(BIO *bio, const uint8_t *token, size_t token_len) in put_token() argument
75 if (token_len == 0) in put_token()
78 put_data(bio, token, token_len); in put_token()
176 size_t token_len; in frame_new_token() local
178 if (!ossl_quic_wire_decode_frame_new_token(pkt, &token, &token_len)) in frame_new_token()
182 put_token(bio, token, token_len); in frame_new_token()
615 put_token(bio, hdr.token, hdr.token_len); in ossl_quic_trace()
H A Dqlog_event_helpers.c453 size_t token_len; in log_frame_actual() local
455 if (!ossl_quic_wire_decode_frame_new_token(pkt, &token, &token_len)) in log_frame_actual()
461 QLOG_BIN("data", token, token_len); in log_frame_actual()
559 if (hdr->token_len > 0) { in log_packet()
562 QLOG_BIN("data", hdr->token, hdr->token_len); in log_packet()
H A Dquic_wire.c168 size_t token_len) in ossl_quic_wire_encode_frame_new_token() argument
171 || !WPACKET_quic_write_vlint(pkt, token_len) in ossl_quic_wire_encode_frame_new_token()
172 || !WPACKET_memcpy(pkt, token, token_len)) in ossl_quic_wire_encode_frame_new_token()
653 size_t *token_len) in ossl_quic_wire_decode_frame_new_token() argument
665 *token_len = (size_t)token_len_; in ossl_quic_wire_decode_frame_new_token()
H A Dquic_rx_depack.c331 size_t token_len; in depack_do_frame_new_token() local
333 if (!ossl_quic_wire_decode_frame_new_token(pkt, &token, &token_len)) { in depack_do_frame_new_token()
341 if (token_len == 0) { in depack_do_frame_new_token()
356 &ch->cur_peer_addr, token, token_len)) in depack_do_frame_new_token()
H A Dquic_txp.c630 static int txp_check_token_len(size_t token_len, size_t mdpl) in txp_check_token_len() argument
632 if (token_len == 0) in txp_check_token_len()
635 if (token_len >= mdpl) in txp_check_token_len()
642 if (token_len > mdpl - TXP_REQUIRED_TOKEN_MARGIN) in txp_check_token_len()
650 size_t token_len, in ossl_quic_tx_packetiser_set_initial_token() argument
654 if (!txp_check_token_len(token_len, txp_get_mdpl(txp))) in ossl_quic_tx_packetiser_set_initial_token()
662 txp->initial_token_len = token_len; in ossl_quic_tx_packetiser_set_initial_token()
1352 phdr->token_len = txp->initial_token_len; in txp_determine_geometry()
1355 phdr->token_len = 0; in txp_determine_geometry()
H A Dquic_port.c1170 hdr.token_len = hdr.len; in port_send_retry()
1255 hdr.token_len = 0; in port_send_version_negotiation()
1347 if (!decrypt_validation_token(port, hdr->token, hdr->token_len, NULL, in port_validate_token()
1350 || !decrypt_validation_token(port, hdr->token, hdr->token_len, in port_validate_token()
H A Dquic_impl.c4823 size_t token_len) in ossl_quic_build_new_token() argument
4834 if ((token != NULL && token_len == 0) || (token == NULL && token_len != 0)) in ossl_quic_build_new_token()
4846 new_token = OPENSSL_zalloc(sizeof(QUIC_TOKEN) + hashkey_len + token_len); in ossl_quic_build_new_token()
4860 new_token->token_len = token_len; in ossl_quic_build_new_token()
4871 memcpy(new_token->token, token, token_len); in ossl_quic_build_new_token()
4876 const uint8_t *token, size_t token_len) in ossl_quic_set_peer_token() argument
4884 tok = ossl_quic_build_new_token(peer, (uint8_t *)token, token_len); in ossl_quic_set_peer_token()
H A Dquic_channel.c564 size_t token_len) in ossl_quic_channel_schedule_new_token() argument
580 token_len)) { in ossl_quic_channel_schedule_new_token()
2564 && ch->qrx_pkt->hdr->token_len > 0) { in ch_rx_handle_packet()
2796 size_t token_len, void *arg) in free_peer_token() argument
2828 token->token_len, in ossl_quic_channel_start()
2865 static void free_token(const unsigned char *token, size_t token_len, void *arg) in free_token() argument
/freebsd/contrib/unbound/sldns/
H A Dstr2wire.c189 size_t prev_len, char* token, size_t token_len) in rrinternal_get_owner() argument
192 if(sldns_bget_token(strbuf, token, "\t\n ", token_len) == -1) { in rrinternal_get_owner()
197 if(token_len < 2) /* make sure there is space to read "@" or "" */ in rrinternal_get_owner()
248 rrinternal_get_ttl(sldns_buffer* strbuf, char* token, size_t token_len, in rrinternal_get_ttl() argument
253 if(sldns_bget_token(strbuf, token, "\t\n ", token_len) == -1) { in rrinternal_get_ttl()
277 rrinternal_get_class(sldns_buffer* strbuf, char* token, size_t token_len, in rrinternal_get_class() argument
283 if(sldns_bget_token(strbuf, token, "\t\n ", token_len) == -1) { in rrinternal_get_class()
299 rrinternal_get_type(sldns_buffer* strbuf, char* token, size_t token_len, in rrinternal_get_type() argument
305 if(sldns_bget_token(strbuf, token, "\t\n ", token_len) == -1) { in rrinternal_get_type()
434 rrinternal_parse_unknown(sldns_buffer* strbuf, char* token, size_t token_len, in rrinternal_parse_unknown() argument
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dcomeback_token.c35 const u8 *token, size_t token_len) in check_comeback_token() argument
43 if (token_len != SHA256_MAC_LEN || in check_comeback_token()
H A Dcomeback_token.h14 const u8 *token, size_t token_len);
/freebsd/usr.bin/indent/
H A Dindent_globs.h95 int token_len = e_token - s_token; \
99 e_token = tokenbuf + token_len + 1; \
/freebsd/crypto/openssl/include/internal/
H A Dquic_wire.h298 size_t token_len);
567 size_t *token_len);
H A Dquic_ssl.h37 size_t token_len; member
45 const uint8_t *token, size_t token_len);
H A Dquic_txp.h132 size_t token_len,
H A Dquic_wire_pkt.h391 size_t token_len; member
H A Dquic_channel.h221 size_t token_len);
/freebsd/contrib/wpa/src/common/
H A Dsae.c1842 size_t *token_len, int h2e) in sae_parse_commit_token() argument
1848 if (token_len) in sae_parse_commit_token()
1849 *token_len = 0; in sae_parse_commit_token()
1870 if (token_len) in sae_parse_commit_token()
1871 *token_len = tlen; in sae_parse_commit_token()
1878 const u8 **token, size_t *token_len) in sae_parse_token_container() argument
1885 *token_len = pos[1] - 1; in sae_parse_token_container()
1887 *token, *token_len); in sae_parse_token_container()
2168 const u8 **token, size_t *token_len, int *allowed_groups, in sae_parse_commit() argument
2183 sae_parse_commit_token(sae, &pos, end, token, token_len, h2e); in sae_parse_commit()
[all …]
H A Dsae.h140 const u8 **token, size_t *token_len, int *allowed_groups,
/freebsd/contrib/wpa/wpa_supplicant/
H A Dsme.c1677 size_t token_len; in sme_sae_auth() local
1704 token_len = len - sizeof(le16); in sme_sae_auth()
1709 if (token_len < 3) { in sme_sae_auth()
1718 elen == 0 || elen > token_len - 2 || in sme_sae_auth()
1724 token_len = elen - 1; in sme_sae_auth()
1727 *ie_offset = token_pos + token_len - data; in sme_sae_auth()
1729 wpa_s->sme.sae_token = wpabuf_alloc_copy(token_pos, token_len); in sme_sae_auth()

12