Home
last modified time | relevance | path

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

123

/openssl/ssl/quic/
H A Dquic_port.c839 token->odcid = odcid; in generate_token()
840 token->rscid = rscid; in generate_token()
844 || (token->remote_addr = OPENSSL_malloc(token->remote_addr_len)) == NULL in generate_token()
871 || (token->is_retry != 0 && token->is_retry != 1)) { in marshal_validation_token()
1027 || !PACKET_copy_bytes(&pkt, &token->is_retry, sizeof(token->is_retry)) in parse_validation_token()
1028 || !(token->is_retry == 0 || token->is_retry == 1) in parse_validation_token()
1045 || (token->remote_addr = OPENSSL_malloc(token->remote_addr_len)) == NULL in parse_validation_token()
1141 hdr.token = hdr.data; in port_send_retry()
1226 hdr.token = 0; in port_send_version_negotiation()
1352 if (token.is_retry) { in port_validate_token()
[all …]
H A Dquic_srt_gen.c65 QUIC_STATELESS_RESET_TOKEN *token) in ossl_quic_srt_gen_calculate_token() argument
81 assert(sizeof(mac) >= sizeof(token->token)); in ossl_quic_srt_gen_calculate_token()
82 memcpy(token->token, mac, sizeof(token->token)); in ossl_quic_srt_gen_calculate_token()
H A Dquic_srtm.c273 (const unsigned char *)token, sizeof(*token))) in srtm_compute_blinded()
276 if (!ossl_assert(outl == sizeof(*token))) in srtm_compute_blinded()
299 item->srt = *token; in ossl_quic_srtm_add()
451 if (!srtm_compute_blinded(srtm, &key, token)) in ossl_quic_srtm_lookup()
473 uint32_t token; member
480 uint32_t token = arg_->token; in check_mark() local
495 item->debug_token = token; in check_mark()
510 uint32_t token = arg_->token; in check_count() local
516 assert(item->debug_token == token); in check_count()
533 args.token = token_next; in ossl_quic_srtm_check()
[all …]
H A Dquic_trace.c73 static void put_token(BIO *bio, const uint8_t *token, size_t token_len) in put_token() argument
78 put_data(bio, token, token_len); in put_token()
174 const uint8_t *token; in frame_new_token() local
177 if (!ossl_quic_wire_decode_frame_new_token(pkt, &token, &token_len)) in frame_new_token()
181 put_token(bio, token, token_len); in frame_new_token()
341 put_data(bio, frame_data.stateless_reset.token, in frame_new_conn_id()
342 sizeof(frame_data.stateless_reset.token)); in frame_new_conn_id()
614 put_token(bio, hdr.token, hdr.token_len); in ossl_quic_trace()
H A Dqlog_event_helpers.c423 f.stateless_reset.token, in log_frame_actual()
424 sizeof(f.stateless_reset.token)); in log_frame_actual()
480 const unsigned char *token; in log_frame_actual() local
483 if (!ossl_quic_wire_decode_frame_new_token(pkt, &token, &token_len)) in log_frame_actual()
489 QLOG_BIN("data", token, token_len); in log_frame_actual()
591 QLOG_BIN("data", hdr->token, hdr->token_len); in log_packet()
H A Dquic_wire.c167 const unsigned char *token, in ossl_quic_wire_encode_frame_new_token() argument
172 || !WPACKET_memcpy(pkt, token, token_len)) in ossl_quic_wire_encode_frame_new_token()
331 || !WPACKET_memcpy(pkt, f->stateless_reset.token, in ossl_quic_wire_encode_frame_new_conn_id()
332 sizeof(f->stateless_reset.token))) in ossl_quic_wire_encode_frame_new_conn_id()
654 const unsigned char **token, in ossl_quic_wire_decode_frame_new_token() argument
666 *token = PACKET_data(pkt); in ossl_quic_wire_decode_frame_new_token()
819 if (!PACKET_copy_bytes(pkt, f->stateless_reset.token, in ossl_quic_wire_decode_frame_new_conn_id()
820 sizeof(f->stateless_reset.token))) in ossl_quic_wire_decode_frame_new_conn_id()
1001 || !PACKET_copy_bytes(&pkt2, p->stateless_reset.token, in ossl_quic_wire_decode_transport_param_preferred_addr()
1002 sizeof(p->stateless_reset.token))) in ossl_quic_wire_decode_transport_param_preferred_addr()
H A Dquic_record_rx.c345 const unsigned char *token = rxe->hdr.token; in qrx_validate_initial_pkt() local
352 if (!qrx_relocate_buffer(qrx, &rxe, &i, &token, rxe->hdr.token_len)) in qrx_validate_initial_pkt()
355 rxe->hdr.token = token; in qrx_validate_initial_pkt()
1141 const unsigned char *token = rxe->hdr.token; in qrx_process_pkt() local
1148 if (!qrx_relocate_buffer(qrx, &rxe, &i, &token, rxe->hdr.token_len)) in qrx_process_pkt()
1151 rxe->hdr.token = token; in qrx_process_pkt()
H A Dquic_wire_pkt.c262 hdr->token = NULL; in ossl_quic_wire_decode_pkt_hdr()
332 hdr->token = NULL; 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()
383 hdr->token = NULL; in ossl_quic_wire_decode_pkt_hdr()
385 hdr->token = NULL; in ossl_quic_wire_decode_pkt_hdr()
578 || !WPACKET_memcpy(pkt, hdr->token, hdr->token_len)) in ossl_quic_wire_encode_pkt_hdr()
583 if (!WPACKET_memcpy(pkt, hdr->token, hdr->token_len)) in ossl_quic_wire_encode_pkt_hdr()
/openssl/test/
H A Dquic_srt_gen_test.c54 QUIC_STATELESS_RESET_TOKEN token; in test_srt_gen() local
62 memset(&token, 0xff, sizeof(token)); in test_srt_gen()
65 &token))) in test_srt_gen()
68 if (!TEST_mem_eq(token.token, sizeof(token.token), in test_srt_gen()
H A Dquic_record_test_util.h41 && !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.c308 const unsigned char *token = NULL; in encode_case_7_dec() local
312 &token, in encode_case_7_dec()
319 if (!TEST_mem_eq(token, token_len, in encode_case_7_dec()
788 if (!TEST_mem_eq(f.stateless_reset.token, in encode_case_16_dec()
789 sizeof(f.stateless_reset.token), in encode_case_16_dec()
790 encode_case_16_f.stateless_reset.token, in encode_case_16_dec()
791 sizeof(encode_case_16_f.stateless_reset.token))) in encode_case_16_dec()
H A DREADME.md80 first token in the list, the current set of tests is first
82 this token equivalent to TESTS="alltests -xxx".
88 If this is the first token in the list, the current set of
90 effectively making this token equivalent to
/openssl/crypto/ts/
H A Dts_rsp_verify.c102 if (!token) { in TS_RESP_verify_signature()
106 if (!PKCS7_type_is_signed(token)) { in TS_RESP_verify_signature()
110 sinfos = PKCS7_get_signer_info(token); in TS_RESP_verify_signature()
116 if (PKCS7_get_detached(token)) { in TS_RESP_verify_signature()
125 signers = PKCS7_get0_signers(token, certs, 0); in TS_RESP_verify_signature()
140 p7bio = PKCS7_dataInit(token, NULL); in TS_RESP_verify_signature()
146 j = PKCS7_signatureVerify(p7bio, token, si, signer); in TS_RESP_verify_signature()
253 PKCS7 *token = response->token; in TS_RESP_verify_response() local
259 if (!int_ts_RESP_verify_token(ctx, token, tst_info)) in TS_RESP_verify_response()
271 int TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token) in TS_RESP_verify_token() argument
[all …]
H A Dts_asn1.c139 if (a->token) {
145 a->tst_info = PKCS7_to_TS_TST_INFO(a->token);
175 ASN1_OPT(TS_RESP, token, PKCS7),
204 TS_TST_INFO *PKCS7_to_TS_TST_INFO(PKCS7 *token) in PKCS7_to_TS_TST_INFO() argument
212 if (!PKCS7_type_is_signed(token)) { in PKCS7_to_TS_TST_INFO()
216 if (PKCS7_get_detached(token)) { in PKCS7_to_TS_TST_INFO()
220 pkcs7_signed = token->d.sign; in PKCS7_to_TS_TST_INFO()
H A Dts_rsp_utils.c42 PKCS7_free(a->token); in TS_RESP_set_tst_info()
43 a->token = p7; in TS_RESP_set_tst_info()
50 return a->token; in TS_RESP_get_token()
/openssl/fuzz/
H A Dquic-srtm.c76 || !PACKET_copy_bytes(&pkt, arg_token.token, in FuzzerTestOneInput()
77 sizeof(arg_token.token))) in FuzzerTestOneInput()
104 if (!PACKET_copy_bytes(&pkt, arg_token.token, in FuzzerTestOneInput()
105 sizeof(arg_token.token)) in FuzzerTestOneInput()
/openssl/doc/man1/
H A Dopenssl-ts.pod.in78 signs them and sends the timestamp token back to the client. By
84 The TSA client receives the timestamp token and verifies the
199 and the timestamp token itself (ContentInfo), if the token generation was
201 response or timestamp token based on a request and printing the
204 otherwise it is a timestamp token (ContentInfo).
270 token or you want to extract the timestamp token from a response. If
272 'granted' status info is added to the token. (Optional)
557 To create a timestamp token instead of timestamp response:
565 To extract the timestamp token from a response:
586 To verify a timestamp token against the original data file:
[all …]
/openssl/include/internal/
H A Dquic_srtm.h70 const QUIC_STATELESS_RESET_TOKEN *token);
100 const QUIC_STATELESS_RESET_TOKEN *token,
H A Dquic_ssl.h36 uint8_t *token; member
45 const uint8_t *token, size_t token_len);
47 QUIC_TOKEN **token);
48 void ossl_quic_free_peer_token(QUIC_TOKEN *token);
H A Dquic_srt_gen.h54 QUIC_STATELESS_RESET_TOKEN *token);
/openssl/apps/
H A Dts.c639 PKCS7 *token = TS_RESP_get_token(response); in reply_command() local
640 if (!i2d_PKCS7_bio(out_bio, token)) in reply_command()
665 PKCS7 *token = NULL; in read_PKCS7() local
670 if ((token = d2i_PKCS7_bio(in_bio, NULL)) == NULL) in read_PKCS7()
672 if ((tst_info = PKCS7_to_TS_TST_INFO(token)) == NULL) in read_PKCS7()
682 TS_RESP_set_tst_info(resp, token, tst_info); in read_PKCS7()
683 token = NULL; /* Ownership is lost. */ in read_PKCS7()
688 PKCS7_free(token); in read_PKCS7()
859 PKCS7 *token = NULL; in verify_command() local
880 ? TS_RESP_verify_token(verify_ctx, token) in verify_command()
[all …]
/openssl/crypto/perlasm/
H A Dx86_64-xlate.pl725 foreach my $token (split(/,\s*/,$line)) {
726 if ($token =~ /^%r/) {
727 push @ret,reg($token);
728 } elsif ($token =~ /((?:0x)?[0-9a-f]+)\((%r\w+)\)/) {
730 } elsif ($token =~ /(\w+):(\-?(?:0x)?[0-9a-f]+)(U?)/i) {
733 } elsif (my $i = 1*eval($token) or $token eq "0") {
734 if ($token =~ /^\+/) {
740 push @ret,$DW_OP_simple{$token};
/openssl/.github/workflows/
H A Dstatic-analysis.yml27 --post-data "token=${{ secrets.COVERITY_TOKEN }}&project=openssl%2Fopenssl" \
41 curl --form token="${{ secrets.COVERITY_TOKEN }}" \
/openssl/test/recipes/75-test_quicapi_data/
H A Dssltraceref-zlib.txt82 Token: <zero length token>
94 Token: <zero length token>
139 Token: <zero length token>
173 Token: <zero length token>
181 Token: <zero length token>
H A Dssltraceref.txt80 Token: <zero length token>
92 Token: <zero length token>
137 Token: <zero length token>
171 Token: <zero length token>
179 Token: <zero length token>

Completed in 68 milliseconds

123