Home
last modified time | relevance | path

Searched refs:cbb (Results 1 – 25 of 60) sorted by relevance

123

/openbsd-src/lib/libssl/
H A Dbs_cbb.c27 cbb_init(CBB *cbb, uint8_t *buf, size_t cap) in cbb_init() argument
39 cbb->base = base; in cbb_init()
40 cbb->is_top_level = 1; in cbb_init()
46 CBB_init(CBB *cbb, size_t initial_capacity) in CBB_init() argument
50 memset(cbb, 0, sizeof(*cbb)); in CBB_init()
58 if (!cbb_init(cbb, buf, initial_capacity)) { in CBB_init()
67 CBB_init_fixed(CBB *cbb, uint8_t *buf, size_t len) in CBB_init_fixed() argument
69 memset(cbb, 0, sizeof(*cbb)); in CBB_init_fixed()
71 if (!cbb_init(cbb, buf, len)) in CBB_init_fixed()
74 cbb->base->can_resize = 0; in CBB_init_fixed()
[all …]
H A Dbytestring.h396 * CBB_init initialises |cbb| with |initial_capacity|. Since a |CBB| grows as
400 int CBB_init(CBB *cbb, size_t initial_capacity);
403 * CBB_init_fixed initialises |cbb| to write to |len| bytes at |buf|. Since
407 int CBB_init_fixed(CBB *cbb, uint8_t *buf, size_t len);
410 * CBB_cleanup frees all resources owned by |cbb| and other |CBB| objects
414 void CBB_cleanup(CBB *cbb);
426 int CBB_finish(CBB *cbb, uint8_t **out_data, size_t *out_len);
430 * |CBB| objects of |cbb| to be invalidated. It returns one on success or zero
433 int CBB_flush(CBB *cbb);
436 * CBB_discard_child discards the current unflushed child of |cbb|
[all...]
H A Dssl_tlsext.c51 tlsext_alpn_client_build(SSL *s, uint16_t msg_type, CBB *cbb) in tlsext_alpn_client_build() argument
55 if (!CBB_add_u16_length_prefixed(cbb, &protolist)) in tlsext_alpn_client_build()
62 if (!CBB_flush(cbb)) in tlsext_alpn_client_build()
143 tlsext_alpn_server_build(SSL *s, uint16_t msg_type, CBB *cbb) in tlsext_alpn_server_build() argument
147 if (!CBB_add_u16_length_prefixed(cbb, &list)) in tlsext_alpn_server_build()
157 if (!CBB_flush(cbb)) in tlsext_alpn_server_build()
201 tlsext_supportedgroups_client_build(SSL *s, uint16_t msg_type, CBB *cbb) in tlsext_supportedgroups_client_build() argument
214 if (!CBB_add_u16_length_prefixed(cbb, &grouplist)) in tlsext_supportedgroups_client_build()
224 if (!CBB_flush(cbb)) in tlsext_supportedgroups_client_build()
318 tlsext_supportedgroups_server_build(SSL *s, uint16_t msg_type, CBB *cbb) in tlsext_supportedgroups_server_build() argument
[all …]
H A Dtls13_server.c330 tls13_server_hello_build(struct tls13_ctx *ctx, CBB *cbb, int hrr) in tls13_server_hello_build() argument
346 if (!CBB_add_u16(cbb, TLS1_2_VERSION)) in tls13_server_hello_build()
348 if (!CBB_add_bytes(cbb, server_random, SSL3_RANDOM_SIZE)) in tls13_server_hello_build()
350 if (!CBB_add_u8_length_prefixed(cbb, &session_id)) in tls13_server_hello_build()
355 if (!CBB_add_u16(cbb, cipher)) in tls13_server_hello_build()
357 if (!CBB_add_u8(cbb, 0)) in tls13_server_hello_build()
359 if (!tlsext_server_build(s, tlsext_msg_type, cbb)) in tls13_server_hello_build()
362 if (!CBB_flush(cbb)) in tls13_server_hello_build()
438 tls13_server_hello_retry_request_send(struct tls13_ctx *ctx, CBB *cbb) in tls13_server_hello_retry_request_send() argument
454 if (!tls13_server_hello_build(ctx, cbb, in tls13_server_hello_retry_request_send()
505 tls13_server_hello_send(struct tls13_ctx * ctx,CBB * cbb) tls13_server_hello_send() argument
538 tls13_server_encrypted_extensions_send(struct tls13_ctx * ctx,CBB * cbb) tls13_server_encrypted_extensions_send() argument
549 tls13_server_certificate_request_send(struct tls13_ctx * ctx,CBB * cbb) tls13_server_certificate_request_send() argument
631 tls13_server_certificate_send(struct tls13_ctx * ctx,CBB * cbb) tls13_server_certificate_send() argument
711 tls13_server_certificate_verify_send(struct tls13_ctx * ctx,CBB * cbb) tls13_server_certificate_verify_send() argument
789 tls13_server_finished_send(struct tls13_ctx * ctx,CBB * cbb) tls13_server_finished_send() argument
952 CBB cbb; tls13_client_certificate_verify_recv() local
[all...]
H A Dssl_srvr.c752 CBB cbb, hello; in ssl3_send_hello_request() local
754 memset(&cbb, 0, sizeof(cbb)); in ssl3_send_hello_request()
757 if (!ssl3_handshake_msg_start(s, &cbb, &hello, in ssl3_send_hello_request()
760 if (!ssl3_handshake_msg_finish(s, &cbb)) in ssl3_send_hello_request()
770 CBB_cleanup(&cbb); in ssl3_send_hello_request()
1177 CBB cbb, verify, cookie; in ssl3_send_dtls_hello_verify_request()
1179 memset(&cbb, 0, sizeof(cbb)); in ssl3_send_dtls_hello_verify_request()
1194 if (!ssl3_handshake_msg_start(s, &cbb, in ssl3_send_dtls_hello_verify_request()
1168 CBB cbb, verify, cookie; ssl3_send_dtls_hello_verify_request() local
1212 CBB cbb, server_hello, session_id; ssl3_send_server_hello() local
1291 CBB cbb, done; ssl3_send_server_done() local
1315 ssl3_send_server_kex_dhe(SSL * s,CBB * cbb) ssl3_send_server_kex_dhe() argument
1373 ssl3_send_server_kex_ecdhe(SSL * s,CBB * cbb) ssl3_send_server_kex_ecdhe() argument
1414 CBB cbb, cbb_signature, cbb_signed_params, server_kex; ssl3_send_server_key_exchange() local
1558 CBB cbb, cert_request, cert_types, sigalgs, cert_auth, dn; ssl3_send_certificate_request() local
2153 CBB cbb, server_cert; ssl3_send_server_certificate() local
2192 CBB cbb, session_ticket, ticket; ssl3_send_newsession_ticket() local
2327 CBB cbb, certstatus, ocspresp; ssl3_send_cert_status() local
2361 CBB cbb; ssl3_send_server_change_cipher_spec() local
2457 CBB cbb, finished; ssl3_send_server_finished() local
[all...]
H A Dtls12_record_layer.c602 tls12_record_layer_build_seq_num(struct tls12_record_layer *rl, CBB *cbb, in tls12_record_layer_build_seq_num() argument
610 if (!CBB_add_u16(cbb, epoch)) in tls12_record_layer_build_seq_num()
616 return CBB_add_bytes(cbb, CBS_data(&seq), CBS_len(&seq)); in tls12_record_layer_build_seq_num()
624 CBB cbb; in tls12_record_layer_pseudo_header() local
630 if (!CBB_init(&cbb, 13)) in tls12_record_layer_pseudo_header()
633 if (!CBB_add_bytes(&cbb, CBS_data(seq_num), CBS_len(seq_num))) in tls12_record_layer_pseudo_header()
635 if (!CBB_add_u8(&cbb, content_type)) in tls12_record_layer_pseudo_header()
637 if (!CBB_add_u16(&cbb, rl->version)) in tls12_record_layer_pseudo_header()
639 if (!CBB_add_u16(&cbb, record_len)) in tls12_record_layer_pseudo_header()
642 if (!CBB_finish(&cbb, out, out_len)) in tls12_record_layer_pseudo_header()
[all …]
H A Dtls13_client.c88 tls13_client_hello_build(struct tls13_ctx *ctx, CBB *cbb) in tls13_client_hello_build() argument
98 if (!CBB_add_u16(cbb, client_version)) in tls13_client_hello_build()
100 if (!CBB_add_bytes(cbb, s->s3->client_random, SSL3_RANDOM_SIZE)) in tls13_client_hello_build()
103 if (!CBB_add_u8_length_prefixed(cbb, &session_id)) in tls13_client_hello_build()
109 if (!CBB_add_u16_length_prefixed(cbb, &cipher_suites)) in tls13_client_hello_build()
116 if (!CBB_add_u8_length_prefixed(cbb, &compression_methods)) in tls13_client_hello_build()
121 if (!tlsext_client_build(s, SSL_TLSEXT_MSG_CH, cbb)) in tls13_client_hello_build()
124 if (!CBB_flush(cbb)) in tls13_client_hello_build()
134 tls13_client_hello_send(struct tls13_ctx *ctx, CBB *cbb) in tls13_client_hello_send() argument
142 if (!tls13_client_hello_build(ctx, cbb)) in tls13_client_hello_send()
436 tls13_client_hello_retry_send(struct tls13_ctx * ctx,CBB * cbb) tls13_client_hello_retry_send() argument
643 CBB cbb; tls13_server_certificate_verify_recv() local
860 tls13_client_certificate_send(struct tls13_ctx * ctx,CBB * cbb) tls13_client_certificate_send() argument
909 tls13_client_certificate_verify_send(struct tls13_ctx * ctx,CBB * cbb) tls13_client_certificate_verify_send() argument
987 tls13_client_end_of_early_data_send(struct tls13_ctx * ctx,CBB * cbb) tls13_client_end_of_early_data_send() argument
993 tls13_client_finished_send(struct tls13_ctx * ctx,CBB * cbb) tls13_client_finished_send() argument
[all...]
H A Dtls_key_share.c246 tls_key_share_params_dhe(struct tls_key_share *ks, CBB *cbb) in tls_key_share_params_dhe() argument
251 return ssl_kex_params_dhe(ks->dhe, cbb); in tls_key_share_params_dhe()
255 tls_key_share_params(struct tls_key_share *ks, CBB *cbb) in tls_key_share_params() argument
258 return tls_key_share_params_dhe(ks, cbb); in tls_key_share_params()
264 tls_key_share_public_dhe(struct tls_key_share *ks, CBB *cbb) in tls_key_share_public_dhe() argument
269 return ssl_kex_public_dhe(ks->dhe, cbb); in tls_key_share_public_dhe()
273 tls_key_share_public_ecdhe_ecp(struct tls_key_share *ks, CBB *cbb) in tls_key_share_public_ecdhe_ecp() argument
278 return ssl_kex_public_ecdhe_ecp(ks->ecdhe, cbb); in tls_key_share_public_ecdhe_ecp()
282 tls_key_share_public_x25519(struct tls_key_share *ks, CBB *cbb) in tls_key_share_public_x25519() argument
287 return CBB_add_bytes(cbb, ks->x25519_public, X25519_KEY_LENGTH); in tls_key_share_public_x25519()
[all …]
H A Dtls13_record_layer.c426 CBB cbb; in tls13_record_layer_enqueue_alert()
431 if (!CBB_init(&cbb, 0)) in tls13_record_layer_enqueue_alert()
434 if (!CBB_add_u8(&cbb, alert_level)) in tls13_record_layer_enqueue_alert()
436 if (!CBB_add_u8(&cbb, alert_desc)) in tls13_record_layer_enqueue_alert()
438 if (!CBB_finish(&cbb, &rl->alert_data, &rl->alert_len)) in tls13_record_layer_enqueue_alert()
447 CBB_cleanup(&cbb); in tls13_record_layer_phh()
645 CBB cbb, body; in tls13_record_layer_seal_record_plaintext()
661 if (!CBB_init(&cbb, TLS13_RECORD_HEADER_LEN + content_len)) in tls13_record_layer_seal_record_plaintext()
664 if (!CBB_add_u8(&cbb, content_type)) in tls13_record_layer_seal_record_plaintext()
666 if (!CBB_add_u16(&cbb, r in tls13_record_layer_seal_record_plaintext()
419 CBB cbb; tls13_record_layer_enqueue_alert() local
638 CBB cbb, body; tls13_record_layer_seal_record_plaintext() local
694 CBB cbb; tls13_record_layer_seal_record_protected() local
[all...]
H A Dtls12_key_schedule.c212 CBB cbb, context; in tls12_exporter() local
221 memset(&cbb, 0, sizeof(cbb)); in tls12_exporter()
238 if (!CBB_init(&cbb, 0)) in tls12_exporter()
240 if (!CBB_add_bytes(&cbb, label, label_len)) in tls12_exporter()
242 if (!CBB_add_bytes(&cbb, s->s3->client_random, SSL3_RANDOM_SIZE)) in tls12_exporter()
244 if (!CBB_add_bytes(&cbb, s->s3->server_random, SSL3_RANDOM_SIZE)) in tls12_exporter()
247 if (!CBB_add_u16_length_prefixed(&cbb, &context)) in tls12_exporter()
255 if (!CBB_finish(&cbb, &data, &data_len)) in tls12_exporter()
288 CBB_cleanup(&cbb); in tls12_exporter()
H A Dssl_clnt.c644 CBB cbb, client_hello, session_id, cookie, cipher_suites; in ssl3_send_client_hello() local
649 memset(&cbb, 0, sizeof(cbb)); in ssl3_send_client_hello()
676 if (!ssl3_handshake_msg_start(s, &cbb, &client_hello, in ssl3_send_client_hello()
738 if (!ssl3_handshake_msg_finish(s, &cbb)) in ssl3_send_client_hello()
748 CBB_cleanup(&cbb); in ssl3_send_client_hello()
1286 CBB cbb; in ssl3_get_server_key_exchange()
1295 memset(&cbb, 0, sizeof(cbb)); in ssl3_get_server_key_exchange()
1332 if (!CBB_init(&cbb, in ssl3_get_server_key_exchange()
1282 CBB cbb; ssl3_get_server_key_exchange() local
1779 ssl3_send_client_kex_rsa(SSL * s,CBB * cbb) ssl3_send_client_kex_rsa() argument
1845 ssl3_send_client_kex_dhe(SSL * s,CBB * cbb) ssl3_send_client_kex_dhe() argument
1883 ssl3_send_client_kex_ecdhe(SSL * s,CBB * cbb) ssl3_send_client_kex_ecdhe() argument
1925 CBB cbb, kex; ssl3_send_client_key_exchange() local
2101 CBB cbb, cert_verify; ssl3_send_client_verify() local
2158 CBB cbb, client_cert; ssl3_send_client_certificate() local
2324 CBB cbb; ssl3_send_client_change_cipher_spec() local
2366 CBB cbb, finished; ssl3_send_client_finished() local
[all...]
H A Dtls13_internal.h377 int tls13_client_hello_send(struct tls13_ctx *ctx, CBB *cbb);
380 int tls13_client_hello_retry_send(struct tls13_ctx *ctx, CBB *cbb);
382 int tls13_client_end_of_early_data_send(struct tls13_ctx *ctx, CBB *cbb);
384 int tls13_client_certificate_send(struct tls13_ctx *ctx, CBB *cbb);
386 int tls13_client_certificate_verify_send(struct tls13_ctx *ctx, CBB *cbb);
389 int tls13_client_finished_send(struct tls13_ctx *ctx, CBB *cbb);
392 int tls13_server_hello_send(struct tls13_ctx *ctx, CBB *cbb);
395 int tls13_server_hello_retry_request_send(struct tls13_ctx *ctx, CBB *cbb);
398 int tls13_server_encrypted_extensions_send(struct tls13_ctx *ctx, CBB *cbb);
400 int tls13_server_certificate_send(struct tls13_ctx *ctx, CBB *cbb);
[all...]
H A Dtls13_handshake_msg.c33 CBB cbb; member
62 CBB_cleanup(&msg->cbb); in tls13_handshake_msg_free()
92 if (!CBB_init(&msg->cbb, TLS13_HANDSHAKE_MSG_INITIAL_LEN)) in tls13_handshake_msg_start()
94 if (!CBB_add_u8(&msg->cbb, msg_type)) in tls13_handshake_msg_start()
96 if (!CBB_add_u24_length_prefixed(&msg->cbb, body)) in tls13_handshake_msg_start()
105 if (!CBB_finish(&msg->cbb, &msg->data, &msg->data_len)) in tls13_handshake_msg_finish()
H A Dssl_kex.c103 ssl_kex_params_dhe(DH *dh, CBB *cbb) in ssl_kex_params_dhe() argument
114 if (!CBB_add_u16_length_prefixed(cbb, &dh_p)) in ssl_kex_params_dhe()
121 if (!CBB_add_u16_length_prefixed(cbb, &dh_g)) in ssl_kex_params_dhe()
128 if (!CBB_flush(cbb)) in ssl_kex_params_dhe()
135 ssl_kex_public_dhe(DH *dh, CBB *cbb) in ssl_kex_public_dhe() argument
144 if (!CBB_add_u16_length_prefixed(cbb, &dh_y)) in ssl_kex_public_dhe()
151 if (!CBB_flush(cbb)) in ssl_kex_public_dhe()
329 ssl_kex_public_ecdhe_ecp(EC_KEY *ecdh, CBB *cbb) in ssl_kex_public_ecdhe_ecp() argument
345 if (!CBB_add_space(cbb, &ecp, ecp_len)) in ssl_kex_public_ecdhe_ecp()
/openbsd-src/lib/libcrypto/bytestring/
H A Dbs_cbb.c27 cbb_init(CBB *cbb, uint8_t *buf, size_t cap) in cbb_init() argument
39 cbb->base = base; in cbb_init()
40 cbb->is_top_level = 1; in cbb_init()
46 CBB_init(CBB *cbb, size_t initial_capacity) in CBB_init() argument
50 memset(cbb, 0, sizeof(*cbb)); in CBB_init()
58 if (!cbb_init(cbb, buf, initial_capacity)) { in CBB_init()
67 CBB_init_fixed(CBB *cbb, uint8_t *buf, size_t len) in CBB_init_fixed() argument
69 memset(cbb, 0, sizeof(*cbb)); in CBB_init_fixed()
71 if (!cbb_init(cbb, buf, len)) in CBB_init_fixed()
74 cbb->base->can_resize = 0; in CBB_init_fixed()
[all …]
H A Dbytestring.h396 * CBB_init initialises |cbb| with |initial_capacity|. Since a |CBB| grows as
400 int CBB_init(CBB *cbb, size_t initial_capacity);
403 * CBB_init_fixed initialises |cbb| to write to |len| bytes at |buf|. Since
407 int CBB_init_fixed(CBB *cbb, uint8_t *buf, size_t len);
410 * CBB_cleanup frees all resources owned by |cbb| and other |CBB| objects
414 void CBB_cleanup(CBB *cbb);
426 int CBB_finish(CBB *cbb, uint8_t **out_data, size_t *out_len);
430 * |CBB| objects of |cbb| to be invalidated. It returns one on success or zero
433 int CBB_flush(CBB *cbb);
436 * CBB_discard_child discards the current unflushed child of |cbb|
[all...]
H A Dbs_ber.c245 CBB cbb; in CBS_asn1_indefinite_to_definite() local
262 if (!CBB_init(&cbb, CBS_len(in))) in CBS_asn1_indefinite_to_definite()
264 if (!cbs_convert_indefinite(in, &cbb, 0, 0, 0)) { in CBS_asn1_indefinite_to_definite()
265 CBB_cleanup(&cbb); in CBS_asn1_indefinite_to_definite()
269 return CBB_finish(&cbb, out, out_len); in CBS_asn1_indefinite_to_definite()
/openbsd-src/lib/libcrypto/rsa/
H A Drsa_pk1.c73 CBB cbb; in RSA_padding_add_PKCS1_type_1() local
81 memset(&cbb, 0, sizeof(cbb)); in RSA_padding_add_PKCS1_type_1()
91 if (!CBB_init_fixed(&cbb, to, tlen)) in RSA_padding_add_PKCS1_type_1()
98 if (!CBB_add_u8(&cbb, 0)) in RSA_padding_add_PKCS1_type_1()
100 if (!CBB_add_u8(&cbb, 1)) in RSA_padding_add_PKCS1_type_1()
103 if (!CBB_add_u8(&cbb, 0xff)) in RSA_padding_add_PKCS1_type_1()
106 if (!CBB_add_u8(&cbb, 0)) in RSA_padding_add_PKCS1_type_1()
110 if (!CBB_add_bytes(&cbb, from, flen)) in RSA_padding_add_PKCS1_type_1()
113 if (!CBB_finish(&cbb, NULL, NULL)) in RSA_padding_add_PKCS1_type_1()
119 CBB_cleanup(&cbb); in RSA_padding_add_PKCS1_type_1()
[all …]
/openbsd-src/regress/lib/libssl/bytestring/
H A Dbytestringtest.c325 CBB cbb; in test_cbb_basic() local
327 CHECK(CBB_init(&cbb, 100)); in test_cbb_basic()
329 CBB_cleanup(&cbb); in test_cbb_basic()
331 CHECK(CBB_init(&cbb, 0)); in test_cbb_basic()
332 CHECK_GOTO(CBB_add_u8(&cbb, 1)); in test_cbb_basic()
333 CHECK_GOTO(CBB_add_u16(&cbb, 0x203)); in test_cbb_basic()
334 CHECK_GOTO(CBB_add_u24(&cbb, 0x40506)); in test_cbb_basic()
335 CHECK_GOTO(CBB_add_u32(&cbb, 0x708090a)); in test_cbb_basic()
336 CHECK_GOTO(CBB_add_bytes(&cbb, (const uint8_t*) "\x0b\x0c", 2)); in test_cbb_basic()
337 CHECK_GOTO(CBB_add_u64(&cbb, 0xd0e0f1011121314LL)); in test_cbb_basic()
[all …]
/openbsd-src/lib/libcrypto/asn1/
H A Da_object.c131 oid_add_arc(CBB *cbb, uint64_t arc) in oid_add_arc() argument
143 if (!CBB_add_u8(cbb, val)) in oid_add_arc()
174 oid_add_arc_txt(CBB *cbb, uint64_t arc, int first) in oid_add_arc_txt() argument
185 if (!CBB_add_bytes(cbb, s, n)) in oid_add_arc_txt()
252 a2c_ASN1_OBJECT_internal(CBB *cbb, CBS *cbs) in a2c_ASN1_OBJECT_internal() argument
283 if (!oid_add_arc(cbb, arc)) in a2c_ASN1_OBJECT_internal()
289 if (!oid_add_arc(cbb, arc)) in a2c_ASN1_OBJECT_internal()
297 c2a_ASN1_OBJECT(CBS *cbs, CBB *cbb) in c2a_ASN1_OBJECT() argument
311 if (!oid_add_arc_txt(cbb, si1, 1)) in c2a_ASN1_OBJECT()
313 if (!oid_add_arc_txt(cbb, si2, 0)) in c2a_ASN1_OBJECT()
[all …]
/openbsd-src/regress/lib/libssl/tlsext/
H A Dtlsexttest.c32 int (*build)(SSL *s, uint16_t msg_type, CBB *cbb);
166 CBB cbb; in test_tlsext_alpn_client() local
173 if (!CBB_init(&cbb, 0)) in test_tlsext_alpn_client()
209 if (!client_funcs->build(ssl, SSL_TLSEXT_MSG_CH, &cbb)) { in test_tlsext_alpn_client()
213 if (!CBB_finish(&cbb, &data, &dlen)) in test_tlsext_alpn_client()
231 CBB_cleanup(&cbb); in test_tlsext_alpn_client()
232 if (!CBB_init(&cbb, 0)) in test_tlsext_alpn_client()
282 if (!client_funcs->build(ssl, SSL_TLSEXT_MSG_CH, &cbb)) { in test_tlsext_alpn_client()
286 if (!CBB_finish(&cbb, &data, &dlen)) in test_tlsext_alpn_client()
351 CBB_cleanup(&cbb); in test_tlsext_alpn_client()
367 CBB cbb; test_tlsext_alpn_server() local
559 CBB cbb; test_tlsext_supportedgroups_client() local
899 CBB cbb; test_tlsext_ecpf_client() local
1133 CBB cbb; test_tlsext_ecpf_server() local
1379 CBB cbb; test_tlsext_ri_client() local
1497 CBB cbb; test_tlsext_ri_server() local
1629 CBB cbb; test_tlsext_sigalgs_client() local
1793 CBB cbb; test_tlsext_sni_client() local
1931 CBB cbb; test_tlsext_sni_server() local
2051 CBB cbb; test_tlsext_quic_transport_parameters_client() local
2183 CBB cbb; test_tlsext_quic_transport_parameters_server() local
2315 CBB cbb; test_tlsext_ocsp_client() local
2396 CBB cbb; test_tlsext_ocsp_server() local
2461 CBB cbb; test_tlsext_sessionticket_client() local
2682 CBB cbb; test_tlsext_sessionticket_server() local
2818 CBB cbb; test_tlsext_srtp_client() local
3058 CBB cbb; test_tlsext_srtp_server() local
3216 CBB cbb; test_tlsext_clienthello_build() local
3339 CBB cbb; test_tlsext_serverhello_build() local
3467 CBB cbb; test_tlsext_versions_client() local
3556 CBB cbb; test_tlsext_versions_server() local
3652 CBB cbb; test_tlsext_keyshare_client() local
3841 CBB cbb; test_tlsext_keyshare_server() local
3976 CBB cbb; test_tlsext_cookie_client() local
4067 CBB cbb; test_tlsext_cookie_server() local
4182 CBB cbb; test_tlsext_psk_modes_client() local
[all...]
/openbsd-src/lib/libcrypto/ct/
H A Dct_vfy.c82 CBB cbb, entry, extensions; in sct_ctx_update() local
87 memset(&cbb, 0, sizeof(cbb)); in sct_ctx_update()
94 if (!CBB_init(&cbb, 0)) in sct_ctx_update()
100 if (!CBB_add_u8(&cbb, sct->version)) in sct_ctx_update()
102 if (!CBB_add_u8(&cbb, SIGNATURE_TYPE_CERT_TIMESTAMP)) in sct_ctx_update()
104 if (!CBB_add_u64(&cbb, sct->timestamp)) in sct_ctx_update()
106 if (!CBB_add_u16(&cbb, sct->entry_type)) in sct_ctx_update()
110 if (!CBB_add_bytes(&cbb, sctx->ihash, sctx->ihashlen)) in sct_ctx_update()
114 if (!CBB_add_u24_length_prefixed(&cbb, &entry)) in sct_ctx_update()
128 if (!CBB_add_u16_length_prefixed(&cbb, &extensions)) in sct_ctx_update()
[all …]
/openbsd-src/lib/libcrypto/bn/
H A Dbn_convert.c304 CBB cbb; in BN_asc2bn()
308 if (!CBB_init(&cbb, 0)) in BN_bn2dec()
324 if (!CBB_add_u8(&cbb, '0' + v)) in BN_bn2dec()
329 if (!CBB_finish(&cbb, &data, &data_len)) in BN_bn2dec()
334 if (!CBB_init(&cbb, data_len + 3)) in BN_bn2dec()
338 if (!CBB_add_u8(&cbb, '-')) in BN_bn2dec()
349 if (!CBB_add_u8(&cbb, c)) in BN_bn2dec()
355 if (!CBB_add_u8(&cbb, '0')) in BN_bn2dec()
358 if (!CBB_add_u8(&cbb, '\0')) in BN_bn2dec()
360 if (!CBB_finish(&cbb, in BN_bn2dec()
318 CBB cbb; BN_bn2dec() local
500 CBB cbb; bn_bn2hex_internal() local
699 CBB cbb, cbb_bin; BN_bn2mpi() local
[all...]
/openbsd-src/lib/libcrypto/bio/
H A Db_dump.c81 CBB cbb; in BIO_dump_indent() local
86 memset(&cbb, 0, sizeof(cbb)); in BIO_dump_indent()
146 if (!CBB_init_fixed(&cbb, ascii_dump, sizeof(ascii_dump))) in BIO_dump_indent()
167 if (!CBB_add_u8(&cbb, u8)) in BIO_dump_indent()
170 if (!CBB_finish(&cbb, NULL, NULL)) in BIO_dump_indent()
200 CBB_cleanup(&cbb); in BIO_dump_indent()
/openbsd-src/regress/lib/libssl/unit/
H A Dcipher_list.c97 CBB cbb; in ssl_list_to_bytes_scsv() local
110 CHECK_GOTO(CBB_init_fixed(&cbb, buf, buflen)); in ssl_list_to_bytes_scsv()
111 CHECK_GOTO(ssl_cipher_list_to_bytes(s, *ciphers, &cbb)); in ssl_list_to_bytes_scsv()
112 CHECK_GOTO(CBB_finish(&cbb, NULL, &outlen)); in ssl_list_to_bytes_scsv()
130 CBB cbb; in ssl_list_to_bytes_no_scsv() local
145 CHECK_GOTO(CBB_init_fixed(&cbb, buf, buflen)); in ssl_list_to_bytes_no_scsv()
146 CHECK_GOTO(ssl_cipher_list_to_bytes(s, *ciphers, &cbb)); in ssl_list_to_bytes_no_scsv()
147 CHECK_GOTO(CBB_finish(&cbb, NULL, &outlen)); in ssl_list_to_bytes_no_scsv()

123