Home
last modified time | relevance | path

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

123

/dragonfly/crypto/libressl/crypto/bytestring/
H A Dbytestring.h42 } CBS; typedef
152 int CBS_get_bytes(CBS *cbs, CBS *out, size_t len);
159 int CBS_get_u8_length_prefixed(CBS *cbs, CBS *out);
166 int CBS_get_u16_length_prefixed(CBS *cbs, CBS *out);
173 int CBS_get_u24_length_prefixed(CBS *cbs, CBS *out);
259 int CBS_get_asn1(CBS *cbs, CBS *out, unsigned int tag_value);
265 int CBS_get_asn1_element(CBS *cbs, CBS *out, unsigned int tag_value);
285 int CBS_get_any_asn1_element(CBS *cbs, CBS *out, unsigned int *out_tag,
303 int CBS_get_optional_asn1(CBS *cbs, CBS *out, int *out_present,
314 int CBS_get_optional_asn1_octet_string(CBS *cbs, CBS *out, int *out_present,
[all …]
H A Dbs_cbs.c32 CBS_dup(const CBS *cbs, CBS *out) in CBS_dup()
232 CBS_get_bytes(CBS *cbs, CBS *out, size_t len) in CBS_get_bytes()
244 cbs_get_length_prefixed(CBS *cbs, CBS *out, size_t len_len) in cbs_get_length_prefixed()
255 CBS_get_u8_length_prefixed(CBS *cbs, CBS *out) in CBS_get_u8_length_prefixed()
261 CBS_get_u16_length_prefixed(CBS *cbs, CBS *out) in CBS_get_u16_length_prefixed()
267 CBS_get_u24_length_prefixed(CBS *cbs, CBS *out) in CBS_get_u24_length_prefixed()
362 CBS throwaway; in cbs_get_any_asn1_element_internal()
463 CBS_get_asn1(CBS *cbs, CBS *out, unsigned int tag_value) in CBS_get_asn1()
494 CBS bytes; in CBS_get_asn1_uint64()
547 CBS child; in CBS_get_optional_asn1_octet_string()
[all …]
H A Dbs_ber.c31 cbs_nonstrict_get_any_asn1_element(CBS *cbs, CBS *out, unsigned int *out_tag, in cbs_nonstrict_get_any_asn1_element()
46 cbs_find_indefinite(const CBS *orig_in, char *indefinite_found, in cbs_find_indefinite()
49 CBS in; in cbs_find_indefinite()
57 CBS contents; in cbs_find_indefinite()
103 is_eoc(size_t header_len, CBS *contents) in is_eoc()
120 cbs_convert_indefinite(CBS *in, CBB *out, char squash_header, in cbs_convert_indefinite()
127 CBS contents; in cbs_convert_indefinite()
170 CBS in_copy, inner_contents; in cbs_convert_indefinite()
242 CBS_asn1_indefinite_to_definite(CBS *in, uint8_t **out, size_t *out_len) in CBS_asn1_indefinite_to_definite()
/dragonfly/crypto/libressl/ssl/
H A Dbytestring.h42 } CBS; typedef
152 int CBS_get_bytes(CBS *cbs, CBS *out, size_t len);
159 int CBS_get_u8_length_prefixed(CBS *cbs, CBS *out);
166 int CBS_get_u16_length_prefixed(CBS *cbs, CBS *out);
173 int CBS_get_u24_length_prefixed(CBS *cbs, CBS *out);
259 int CBS_get_asn1(CBS *cbs, CBS *out, unsigned int tag_value);
265 int CBS_get_asn1_element(CBS *cbs, CBS *out, unsigned int tag_value);
285 int CBS_get_any_asn1_element(CBS *cbs, CBS *out, unsigned int *out_tag,
303 int CBS_get_optional_asn1(CBS *cbs, CBS *out, int *out_present,
314 int CBS_get_optional_asn1_octet_string(CBS *cbs, CBS *out, int *out_present,
[all …]
H A Dbs_cbs.c32 CBS_dup(const CBS *cbs, CBS *out) in CBS_dup()
232 CBS_get_bytes(CBS *cbs, CBS *out, size_t len) in CBS_get_bytes()
244 cbs_get_length_prefixed(CBS *cbs, CBS *out, size_t len_len) in cbs_get_length_prefixed()
255 CBS_get_u8_length_prefixed(CBS *cbs, CBS *out) in CBS_get_u8_length_prefixed()
261 CBS_get_u16_length_prefixed(CBS *cbs, CBS *out) in CBS_get_u16_length_prefixed()
267 CBS_get_u24_length_prefixed(CBS *cbs, CBS *out) in CBS_get_u24_length_prefixed()
362 CBS throwaway; in cbs_get_any_asn1_element_internal()
463 CBS_get_asn1(CBS *cbs, CBS *out, unsigned int tag_value) in CBS_get_asn1()
494 CBS bytes; in CBS_get_asn1_uint64()
547 CBS child; in CBS_get_optional_asn1_octet_string()
[all …]
H A Dtls12_key_schedule.c26 CBS client_write_mac_key;
27 CBS server_write_mac_key;
28 CBS client_write_key;
29 CBS server_write_key;
30 CBS client_write_iv;
31 CBS server_write_iv;
70 tls12_key_block_client_write(struct tls12_key_block *kb, CBS *mac_key, in tls12_key_block_client_write()
71 CBS *key, CBS *iv) in tls12_key_block_client_write()
79 tls12_key_block_server_write(struct tls12_key_block *kb, CBS *mac_key, in tls12_key_block_server_write()
80 CBS *key, CBS *iv) in tls12_key_block_server_write()
[all …]
H A Dssl_tlsext.c75 CBS proto_name; in tlsext_alpn_check_format()
165 CBS list, proto; in tlsext_alpn_client_parse()
233 CBS grouplist; in tlsext_supportedgroups_server_parse()
354 CBS ecpf; in tlsext_ecpf_parse()
443 CBS reneg; in tlsext_ri_server_parse()
575 CBS sigalgs; in tlsext_sigalgs_server_parse()
612 CBS sigalgs; in tlsext_sigalgs_client_parse()
690 CBS hostname; in tlsext_sni_is_valid_hostname()
1032 CBS response; in tlsext_ocsp_client_parse()
1705 CBS cookie; in tlsext_cookie_server_parse()
[all …]
H A Dtls13_internal.h204 void tls13_record_layer_rcontent(struct tls13_record_layer *rl, CBS *cbs);
218 ssize_t tls13_record_layer_phh(struct tls13_record_layer *rl, CBS *cbs);
240 void tls13_handshake_msg_data(struct tls13_handshake_msg *msg, CBS *cbs);
375 int tls13_client_hello_recv(struct tls13_ctx *ctx, CBS *cbs);
377 int tls13_client_hello_retry_recv(struct tls13_ctx *ctx, CBS *cbs);
381 int tls13_client_certificate_recv(struct tls13_ctx *ctx, CBS *cbs);
384 int tls13_client_finished_recv(struct tls13_ctx *ctx, CBS *cbs);
387 int tls13_server_hello_recv(struct tls13_ctx *ctx, CBS *cbs);
395 int tls13_server_certificate_recv(struct tls13_ctx *ctx, CBS *cbs);
401 int tls13_server_finished_recv(struct tls13_ctx *ctx, CBS *cbs);
[all …]
H A Dtls12_record_layer.c369 CBS max_seq_num; in tls12_record_layer_inc_seq_num()
417 CBS *iv) in tls12_record_layer_ccs_aead()
468 CBS *iv) in tls12_record_layer_ccs_cipher()
550 CBS *iv) in tls12_record_layer_change_cipher_state()
562 CBS *mac_key, CBS *key, CBS *iv) in tls12_record_layer_change_read_cipher_state()
594 CBS *mac_key, CBS *key, CBS *iv) in tls12_record_layer_change_write_cipher_state()
633 CBS seq; in tls12_record_layer_build_seq_num()
881 uint8_t content_type, CBS *seq_num, CBS *fragment, uint8_t **out, in tls12_record_layer_open_record_protected_aead()
889 CBS var_nonce; in tls12_record_layer_open_record_protected_aead()
951 uint8_t content_type, CBS *seq_num, CBS *fragment, uint8_t **out, in tls12_record_layer_open_record_protected_cipher()
[all …]
H A Dssl_tlsext.h34 int tlsext_alpn_check_format(CBS *cbs);
35 int tlsext_sni_is_valid_hostname(CBS *cbs, int *is_ip);
38 int tlsext_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
41 int tlsext_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
H A Dtls13_record.c27 CBS cbs;
75 tls13_record_header(struct tls13_record *rec, CBS *cbs) in tls13_record_header()
86 tls13_record_content(struct tls13_record *rec, CBS *cbs) in tls13_record_content()
88 CBS content; in tls13_record_content()
101 tls13_record_data(struct tls13_record *rec, CBS *cbs) in tls13_record_data()
127 CBS cbs; in tls13_record_recv()
H A Dtls13_client.c162 tls13_server_hello_is_legacy(CBS *cbs) in tls13_server_hello_is_legacy()
164 CBS extensions_block, extensions, extension_data; in tls13_server_hello_is_legacy()
191 tls13_server_hello_is_retry(CBS *cbs) in tls13_server_hello_is_retry()
193 CBS server_hello, server_random; in tls13_server_hello_is_retry()
209 tls13_server_hello_process(struct tls13_ctx *ctx, CBS *cbs) in tls13_server_hello_process()
211 CBS server_random, session_id; in tls13_server_hello_process()
463 tls13_server_hello_recv(struct tls13_ctx *ctx, CBS *cbs) in tls13_server_hello_recv()
516 CBS cert_request_context; in tls13_server_certificate_request_recv()
552 CBS cert_request_context, cert_list, cert_data; in tls13_server_certificate_recv()
642 CBS signature; in tls13_server_certificate_verify_recv()
[all …]
H A Dssl_locl.h667 void tls12_key_block_client_write(struct tls12_key_block *kb, CBS *mac_key,
668 CBS *key, CBS *iv);
669 void tls12_key_block_server_write(struct tls12_key_block *kb, CBS *mac_key,
670 CBS *key, CBS *iv);
703 CBS *mac_key, CBS *key, CBS *iv);
705 CBS *mac_key, CBS *key, CBS *iv);
1323 int ssl_get_prev_session(SSL *s, CBS *session_id, CBS *ext_block,
1329 STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *s, CBS *cbs);
1460 int ssl_kex_peer_params_dhe(DH *dh, CBS *cbs, int *decode_error,
1462 int ssl_kex_peer_public_dhe(DH *dh, CBS *cbs, int *decode_error,
[all …]
H A Dssl_packet.c22 ssl_is_sslv2_client_hello(CBS *header) in ssl_is_sslv2_client_hello()
26 CBS cbs; in ssl_is_sslv2_client_hello()
50 ssl_is_sslv3_handshake(CBS *header) in ssl_is_sslv3_handshake()
54 CBS cbs; in ssl_is_sslv3_handshake()
74 CBS cbs, challenge, cipher_specs, session; in ssl_convert_sslv2_client_hello()
238 CBS header; in ssl_server_legacy_first_packet()
H A Dtls13_record.h54 int tls13_record_header(struct tls13_record *_rec, CBS *_cbs);
55 int tls13_record_content(struct tls13_record *_rec, CBS *_cbs);
56 void tls13_record_data(struct tls13_record *_rec, CBS *_cbs);
H A Dtls13_handshake_msg.c32 CBS cbs;
69 tls13_handshake_msg_data(struct tls13_handshake_msg *msg, CBS *cbs) in tls13_handshake_msg_data()
81 tls13_handshake_msg_content(struct tls13_handshake_msg *msg, CBS *cbs) in tls13_handshake_msg_content()
127 CBS cbs; in tls13_handshake_msg_recv()
H A Dtls13_server.c65 tls13_client_hello_is_legacy(CBS *cbs) in tls13_client_hello_is_legacy()
67 CBS extensions_block, extensions, extension_data, versions; in tls13_client_hello_is_legacy()
145 tls13_client_hello_process(struct tls13_ctx *ctx, CBS *cbs) in tls13_client_hello_process()
147 CBS cipher_suites, client_random, compression_methods, session_id; in tls13_client_hello_process()
298 tls13_client_hello_recv(struct tls13_ctx *ctx, CBS *cbs) in tls13_client_hello_recv()
475 tls13_client_hello_retry_recv(struct tls13_ctx *ctx, CBS *cbs) in tls13_client_hello_retry_recv()
802 CBS cbs; in tls13_server_finished_send()
871 tls13_client_certificate_recv(struct tls13_ctx *ctx, CBS *cbs) in tls13_client_certificate_recv()
873 CBS cert_request_context, cert_list, cert_data, cert_exts; in tls13_client_certificate_recv()
953 CBS signature; in tls13_client_certificate_verify_recv()
[all …]
H A Dtls_key_share.c303 tls_key_share_peer_params_dhe(struct tls_key_share *ks, CBS *cbs, in tls_key_share_peer_params_dhe()
321 tls_key_share_peer_params(struct tls_key_share *ks, CBS *cbs, in tls_key_share_peer_params()
332 tls_key_share_peer_public_dhe(struct tls_key_share *ks, CBS *cbs, in tls_key_share_peer_public_dhe()
343 tls_key_share_peer_public_ecdhe_ecp(struct tls_key_share *ks, CBS *cbs) in tls_key_share_peer_public_ecdhe_ecp()
368 tls_key_share_peer_public_x25519(struct tls_key_share *ks, CBS *cbs, in tls_key_share_peer_public_x25519()
387 tls_key_share_peer_public(struct tls_key_share *ks, CBS *cbs, int *decode_error, in tls_key_share_peer_public()
H A Dtls_internal.h70 int tls_buffer_data(struct tls_buffer *buf, CBS *cbs);
90 int tls_key_share_peer_params(struct tls_key_share *ks, CBS *cbs,
92 int tls_key_share_peer_public(struct tls_key_share *ks, CBS *cbs,
H A Dtls13_lib.c159 CBS cbs; in tls13_legacy_handshake_message_recv_cb()
173 CBS cbs; in tls13_legacy_handshake_message_sent_cb()
278 tls13_key_update_recv(struct tls13_ctx *ctx, CBS *cbs) in tls13_key_update_recv()
282 CBS cbs_hs; in tls13_key_update_recv()
336 CBS cbs; in tls13_phh_received_cb()
481 CBS cbs; in tls13_synthetic_handshake_message()
553 tls13_clienthello_hash_update(struct tls13_ctx *ctx, CBS *cbs) in tls13_clienthello_hash_update()
/dragonfly/crypto/libressl/crypto/asn1/
H A Dasn1_locl.h176 int asn1_enc_save(ASN1_VALUE **pval, CBS *cbs, const ASN1_ITEM *it);
197 int asn1_get_identifier_cbs(CBS *cbs, int der_mode, uint8_t *out_class,
199 int asn1_get_length_cbs(CBS *cbs, int der_mode, int *out_indefinite,
201 int asn1_get_object_cbs(CBS *cbs, int der_mode, uint8_t *out_class,
205 CBS *out_content);
212 int c2i_ASN1_BIT_STRING_cbs(ASN1_BIT_STRING **out_abs, CBS *cbs);
214 int c2i_ASN1_ENUMERATED_cbs(ASN1_ENUMERATED **out_aenum, CBS *cbs);
216 int asn1_aint_get_uint64(CBS *cbs, uint64_t *out_val);
218 int asn1_aint_get_int64(CBS *cbs, int negative, int64_t *out_val);
219 int c2i_ASN1_INTEGER_cbs(ASN1_INTEGER **out_aint, CBS *cbs);
[all …]
H A Dtasn_dec.c92 asn1_check_eoc(CBS *cbs) in asn1_check_eoc()
186 CBS content; in asn1_collect()
453 asn1_d2i_primitive_content(ASN1_VALUE **pval, CBS *cbs, CBS *cbs_object, in asn1_d2i_primitive_content()
457 CBS cbs_content, cbs_initial; in asn1_d2i_primitive_content()
529 CBS cbs_object; in asn1_d2i_any()
566 CBS cbs_object; in asn1_d2i_mstring()
609 CBS cbs_object; in asn1_d2i_primitive()
1021 CBS cbs_object, cbs_object_content; in asn1_template_stack_of_d2i()
1163 CBS cbs_exp, cbs_exp_content; in asn1_template_d2i()
1246 CBS cbs; in ASN1_item_ex_d2i()
[all …]
H A Da_object.c148 oid_parse_arc(CBS *cbs, uint64_t *out_arc) in oid_parse_arc()
188 oid_parse_arc_txt(CBS *cbs, uint64_t *out_arc, char *separator, int first) in oid_parse_arc_txt()
248 a2c_ASN1_OBJECT_internal(CBB *cbb, CBS *cbs) in a2c_ASN1_OBJECT_internal()
293 c2a_ASN1_OBJECT(CBS *cbs, CBB *cbb) in c2a_ASN1_OBJECT()
331 CBS cbs; in a2d_ASN1_OBJECT()
374 CBS cbs; in i2t_ASN1_OBJECT_oid()
464 CBS cbs; in t2i_ASN1_OBJECT_internal()
525 c2i_ASN1_OBJECT_cbs(ASN1_OBJECT **out_aobj, CBS *content) in c2i_ASN1_OBJECT_cbs()
530 CBS cbs; in c2i_ASN1_OBJECT_cbs()
581 CBS content; in c2i_ASN1_OBJECT()
[all …]
H A Dasn1_lib.c24 asn1_get_identifier_cbs(CBS *cbs, int der_mode, uint8_t *out_class, in asn1_get_identifier_cbs()
80 asn1_get_length_cbs(CBS *cbs, int der_mode, int *out_indefinite, in asn1_get_length_cbs()
141 asn1_get_object_cbs(CBS *cbs, int der_mode, uint8_t *out_tag_class, in asn1_get_object_cbs()
176 asn1_get_primitive(CBS *cbs, int der_mode, uint32_t *out_tag_number, in asn1_get_primitive()
177 CBS *out_content) in asn1_get_primitive()
/dragonfly/crypto/libressl/crypto/ct/
H A Dct_oct.c76 o2i_SCT_signature(SCT *sct, CBS *cbs) in o2i_SCT_signature()
79 CBS signature; in o2i_SCT_signature()
123 o2i_SCT_internal(SCT **out_sct, CBS *cbs) in o2i_SCT_internal()
141 CBS extensions, log_id; in o2i_SCT_internal()
192 CBS cbs; in o2i_SCT()
321 CBS cbs, cbs_scts, cbs_sct; in STACK_OF()

123