| /openbsd-src/lib/libssl/ |
| H A D | bytestring.h | 29 * A "CBS" (CRYPTO ByteString) represents a string of bytes in memory and 42 } CBS; typedef 48 void CBS_init(CBS *cbs, const uint8_t *data, size_t len); 54 int CBS_skip(CBS *cbs, size_t len); 59 const uint8_t *CBS_data(const CBS *cbs); 64 size_t CBS_len(const CBS *cbs); 69 size_t CBS_offset(const CBS *cbs); 78 int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len); 87 int CBS_strdup(const CBS *cbs, char **out_ptr); 94 int CBS_write_bytes(const CBS *cb [all...] |
| H A D | bs_cbs.c | 25 CBS_init(CBS *cbs, const uint8_t *data, size_t len) in CBS_init() 33 CBS_dup(const CBS *cbs, CBS *out) in CBS_dup() 40 cbs_get(CBS *cbs, const uint8_t **p, size_t n) in cbs_get() 52 cbs_peek(CBS *cbs, const uint8_t **p, size_t n) in cbs_peek() 62 CBS_offset(const CBS *cbs) in CBS_offset() 68 CBS_skip(CBS *cbs, size_t len) in CBS_skip() 75 CBS_data(const CBS *cbs) in CBS_data() 81 CBS_len(const CBS *cbs) in CBS_len() 87 CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len) in CBS_stow() 106 CBS_strdup(const CBS *cbs, char **out_ptr) in CBS_strdup() [all …]
|
| H A D | bs_ber.c | 32 cbs_nonstrict_get_any_asn1_element(CBS *cbs, CBS *out, unsigned int *out_tag, in cbs_nonstrict_get_any_asn1_element() 47 cbs_find_indefinite(const CBS *orig_in, char *indefinite_found, in cbs_find_indefinite() 50 CBS in; in cbs_find_indefinite() 58 CBS contents; in cbs_find_indefinite() 104 is_eoc(size_t header_len, CBS *contents) in is_eoc() 121 cbs_convert_indefinite(CBS *in, CBB *out, char squash_header, in cbs_convert_indefinite() 128 CBS contents; in cbs_convert_indefinite() 171 CBS in_copy, inner_contents; in cbs_convert_indefinite() 243 CBS_asn1_indefinite_to_definite(CBS *in, uint8_t **out, size_t *out_len) in CBS_asn1_indefinite_to_definite()
|
| H A D | tls12_key_schedule.c | 27 CBS client_write_mac_key; 28 CBS server_write_mac_key; 29 CBS client_write_key; 30 CBS server_write_key; 31 CBS client_write_iv; 32 CBS server_write_iv; 71 tls12_key_block_client_write(struct tls12_key_block *kb, CBS *mac_key, in tls12_key_block_client_write() 72 CBS *key, CBS *iv) in tls12_key_block_client_write() 80 tls12_key_block_server_write(struct tls12_key_block *kb, CBS *mac_key, in tls12_key_block_server_write() 81 CBS *key, CBS *iv) in tls12_key_block_server_write() [all …]
|
| H A D | tls13_internal.h | 205 void tls13_record_layer_rcontent(struct tls13_record_layer *rl, CBS *cbs); 221 ssize_t tls13_record_layer_phh(struct tls13_record_layer *rl, CBS *cbs); 243 void tls13_handshake_msg_data(struct tls13_handshake_msg *msg, CBS *cbs); 245 int tls13_handshake_msg_content(struct tls13_handshake_msg *msg, CBS *cbs); 379 int tls13_client_hello_recv(struct tls13_ctx *ctx, CBS *cbs); 381 int tls13_client_hello_retry_recv(struct tls13_ctx *ctx, CBS *cbs); 383 int tls13_client_end_of_early_data_recv(struct tls13_ctx *ctx, CBS *cbs); 385 int tls13_client_certificate_recv(struct tls13_ctx *ctx, CBS *cbs); 387 int tls13_client_certificate_verify_recv(struct tls13_ctx *ctx, CBS *cbs); 388 int tls13_client_finished_recv(struct tls13_ctx *ctx, CBS *cb [all...] |
| H A D | ssl_tlsext.c | 69 tlsext_alpn_check_format(CBS *cbs) in tlsext_alpn_check_format() 71 CBS proto_name_list; in tlsext_alpn_check_format() 78 CBS proto_name; in tlsext_alpn_check_format() 90 tlsext_alpn_server_process(SSL *s, uint16_t msg_type, CBS *cbs, int *alert) in tlsext_alpn_server_process() 92 CBS alpn, selected_cbs; in tlsext_alpn_server_process() 164 tlsext_alpn_client_process(SSL *s, uint16_t msg_type, CBS *cbs, int *alert) in tlsext_alpn_client_process() 166 CBS list, proto; in tlsext_alpn_client_process() 231 tlsext_supportedgroups_server_process(SSL *s, uint16_t msg_type, CBS *cbs, in tlsext_supportedgroups_server_process() 236 CBS grouplist; in tlsext_supportedgroups_server_process() 324 tlsext_supportedgroups_client_process(SSL *s, uint16_t msg_type, CBS *cbs, in tlsext_supportedgroups_client_process() [all …]
|
| H A D | tls12_record_layer.c | 369 CBS max_seq_num; in tls12_record_layer_inc_seq_num() 416 struct tls12_record_protection *rp, int is_write, CBS *mac_key, CBS *key, in tls12_record_layer_ccs_aead() 417 CBS *iv) in tls12_record_layer_ccs_aead() 467 struct tls12_record_protection *rp, int is_write, CBS *mac_key, CBS *key, in tls12_record_layer_ccs_cipher() 468 CBS *iv) in tls12_record_layer_ccs_cipher() 521 struct tls12_record_protection *rp, int is_write, CBS *mac_key, CBS *key, in tls12_record_layer_change_cipher_state() 522 CBS *iv) in tls12_record_layer_change_cipher_state() 534 CBS *mac_key, CBS *key, CBS *iv) in tls12_record_layer_change_read_cipher_state() 566 CBS *mac_key, CBS *key, CBS *iv) in tls12_record_layer_change_write_cipher_state() 605 CBS seq; in tls12_record_layer_build_seq_num() [all …]
|
| H A D | ssl_tlsext.h | 34 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 D | tls13_record.c | 27 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 D | tls13_record.h | 54 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 D | ssl_packet.c | 22 ssl_is_sslv3_handshake(CBS *header) in ssl_is_sslv3_handshake() 26 CBS cbs; in ssl_is_sslv3_handshake() 51 CBS header; in ssl_server_legacy_first_packet()
|
| H A D | ssl_local.h | 612 void tls12_key_block_client_write(struct tls12_key_block *kb, CBS *mac_key, 613 CBS *key, CBS *iv); 614 void tls12_key_block_server_write(struct tls12_key_block *kb, CBS *mac_key, 615 CBS *key, CBS *iv); 648 CBS *mac_key, CBS *key, CBS *iv); 650 CBS *mac_ke [all...] |
| H A D | tls13_client.c | 162 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() 400 tls13_server_hello_retry_request_recv(struct tls13_ctx *ctx, CBS *cbs) in tls13_server_hello_retry_request_recv() 463 tls13_server_hello_recv(struct tls13_ctx *ctx, CBS *cbs) in tls13_server_hello_recv() 501 tls13_server_encrypted_extensions_recv(struct tls13_ctx *ctx, CBS *cbs) in tls13_server_encrypted_extensions_recv() 514 tls13_server_certificate_request_recv(struct tls13_ctx *ctx, CBS *cb [all...] |
| H A D | tls13_handshake_msg.c | 32 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 D | tls13_lib.c | 120 CBS cbs; in tls13_legacy_alert_cb() 200 CBS cbs; in tls13_legacy_handshake_message_recv_cb() 214 CBS cbs; in tls13_legacy_handshake_message_sent_cb() 319 tls13_key_update_recv(struct tls13_ctx *ctx, CBS *cbs) in tls13_key_update_recv() 323 CBS cbs_hs; in tls13_key_update_recv() 374 tls13_new_session_ticket_recv(struct tls13_ctx *ctx, CBS *cbs) in tls13_new_session_ticket_recv() 379 CBS ticket_nonce, ticket; in tls13_new_session_ticket_recv() 478 CBS cbs; in tls13_phh_received_cb() 625 CBS cbs; in tls13_synthetic_handshake_message() 697 tls13_clienthello_hash_update(struct tls13_ctx *ctx, CBS *cbs) in tls13_clienthello_hash_update()
|
| /openbsd-src/lib/libcrypto/bytestring/ |
| H A D | bytestring.h | 29 * A "CBS" (CRYPTO ByteString) represents a string of bytes in memory and 42 } CBS; typedef 48 void CBS_init(CBS *cbs, const uint8_t *data, size_t len); 54 int CBS_skip(CBS *cbs, size_t len); 59 const uint8_t *CBS_data(const CBS *cbs); 64 size_t CBS_len(const CBS *cbs); 69 size_t CBS_offset(const CBS *cbs); 78 int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len); 87 int CBS_strdup(const CBS *cbs, char **out_ptr); 94 int CBS_write_bytes(const CBS *cb [all...] |
| H A D | bs_cbs.c | 25 CBS_init(CBS *cbs, const uint8_t *data, size_t len) in CBS_init() 33 CBS_dup(const CBS *cbs, CBS *out) in CBS_dup() 40 cbs_get(CBS *cbs, const uint8_t **p, size_t n) in cbs_get() 52 cbs_peek(CBS *cbs, const uint8_t **p, size_t n) in cbs_peek() 62 CBS_offset(const CBS *cbs) in CBS_offset() 68 CBS_skip(CBS *cbs, size_t len) in CBS_skip() 75 CBS_data(const CBS *cbs) in CBS_data() 81 CBS_len(const CBS *cbs) in CBS_len() 87 CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len) in CBS_stow() 106 CBS_strdup(const CBS *cbs, char **out_ptr) in CBS_strdup() [all …]
|
| H A D | bs_ber.c | 32 cbs_nonstrict_get_any_asn1_element(CBS *cbs, CBS *out, unsigned int *out_tag, in cbs_nonstrict_get_any_asn1_element() 47 cbs_find_indefinite(const CBS *orig_in, char *indefinite_found, in cbs_find_indefinite() 50 CBS in; in cbs_find_indefinite() 58 CBS contents; in cbs_find_indefinite() 104 is_eoc(size_t header_len, CBS *contents) in is_eoc() 121 cbs_convert_indefinite(CBS *in, CBB *out, char squash_header, in cbs_convert_indefinite() 128 CBS contents; in cbs_convert_indefinite() 171 CBS in_copy, inner_contents; in cbs_convert_indefinite() 243 CBS_asn1_indefinite_to_definite(CBS *in, uint8_t **out, size_t *out_len) in CBS_asn1_indefinite_to_definite()
|
| /openbsd-src/lib/libcrypto/asn1/ |
| H A D | asn1_local.h | 103 int asn1_enc_save(ASN1_VALUE **pval, CBS *cbs, const ASN1_ITEM *it); 124 int asn1_get_identifier_cbs(CBS *cbs, int der_mode, uint8_t *out_class, 126 int asn1_get_length_cbs(CBS *cbs, int der_mode, int *out_indefinite, 128 int asn1_get_object_cbs(CBS *cbs, int der_mode, uint8_t *out_class, 131 int asn1_get_primitive(CBS *cbs, int der_mode, uint32_t *out_tag_number, 132 CBS *out_content); 139 int c2i_ASN1_BIT_STRING_cbs(ASN1_BIT_STRING **out_abs, CBS *cbs); 141 int c2i_ASN1_ENUMERATED_cbs(ASN1_ENUMERATED **out_aenum, CBS *cbs); 143 int asn1_aint_get_uint64(CBS *cbs, uint64_t *out_val); 145 int asn1_aint_get_int64(CBS *cbs, int negative, int64_t *out_val); [all …]
|
| H A D | tasn_dec.c | 88 static int asn1_template_d2i(ASN1_VALUE **pval, CBS *cbs, 92 asn1_check_eoc(CBS *cbs) in asn1_check_eoc() 105 asn1_check_tag(CBS *cbs, size_t *out_len, int *out_tag, uint8_t *out_class, in asn1_check_tag() 181 asn1_collect(CBB *cbb, CBS *cbs, int indefinite, int expected_tag, in asn1_collect() 186 CBS content; in asn1_collect() 235 asn1_find_end(CBS *cbs, size_t length, int indefinite) in asn1_find_end() 277 asn1_c2i_primitive(ASN1_VALUE **pval, CBS *content, int utype, const ASN1_ITEM *it) in asn1_c2i_primitive() 387 asn1_c2i_any(ASN1_VALUE **pval, CBS *content, int utype, const ASN1_ITEM *it) in asn1_c2i_any() 418 asn1_c2i(ASN1_VALUE **pval, CBS *content, int utype, const ASN1_ITEM *it) in asn1_c2i() 453 asn1_d2i_primitive_content(ASN1_VALUE **pval, CBS *cbs, CBS *cbs_object, in asn1_d2i_primitive_content() [all …]
|
| H A D | asn1_lib.c | 24 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()
|
| H A D | a_object.c | 152 oid_parse_arc(CBS *cbs, uint64_t *out_arc) in oid_parse_arc() 192 oid_parse_arc_txt(CBS *cbs, uint64_t *out_arc, char *separator, int first) in oid_parse_arc_txt() 252 a2c_ASN1_OBJECT_internal(CBB *cbb, CBS *cbs) in a2c_ASN1_OBJECT_internal() 297 c2a_ASN1_OBJECT(CBS *cbs, CBB *cbb) in c2a_ASN1_OBJECT() 335 CBS cbs; in a2d_ASN1_OBJECT() 379 CBS cbs; in i2t_ASN1_OBJECT_oid() 473 CBS cbs; in t2i_ASN1_OBJECT_internal() 535 c2i_ASN1_OBJECT_cbs(ASN1_OBJECT **out_aobj, CBS *content) in c2i_ASN1_OBJECT_cbs() 540 CBS cbs; in c2i_ASN1_OBJECT_cbs() 591 CBS content; in c2i_ASN1_OBJECT() [all …]
|
| /openbsd-src/lib/libcrypto/bn/ |
| H A D | bn_convert.c | 74 static int bn_dec2bn_cbs(BIGNUM **bnp, CBS *cbs); 75 static int bn_hex2bn_cbs(BIGNUM **bnp, CBS *cbs); 143 bn_bin2bn_cbs(BIGNUM **bnp, CBS *cbs, int lebin) in BN_bn2bin() 199 CBS cbs; in bn_bin2bn_cbs() 226 CBS cbs; 243 CBS cbs, cbs_hex; in BN_lebin2bn() 305 CBS cbs; 373 bn_dec2bn_cbs(BIGNUM **bnp, CBS *cbs) in BN_bn2dec() 375 CBS cbs_digits; in BN_bn2dec() 461 CBS cb in bn_dec2bn_cbs() [all...] |
| /openbsd-src/regress/lib/libcrypto/x509/ |
| H A D | constraints.c | 185 CBS cbs; in test_valid_hostnames() 211 CBS cbs; in test_valid_sandns_names() 231 CBS cbs; in test_valid_domain_constraints() 252 CBS cbs; in test_valid_mbox_names() 276 CBS cbs; in test_invalid_hostnames() 310 CBS cbs; in test_invalid_sandns_names() 331 CBS cbs; in test_invalid_mbox_names() 355 CBS cbs; in test_invalid_domain_constraints()
|
| /openbsd-src/lib/libcrypto/x509/ |
| H A D | x509_internal.h | 115 int x509_constraints_valid_host(CBS *cbs, int permit_ip); 116 int x509_constraints_valid_sandns(CBS *cbs); 119 int x509_constraints_parse_mailbox(CBS *candidate, 121 int x509_constraints_valid_domain_constraint(CBS *cbs);
|