Home
last modified time | relevance | path

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

12

/external/boringssl/src/crypto/bytestring/
Dcbs.c25 void CBS_init(CBS *cbs, const uint8_t *data, size_t len) { in CBS_init()
30 static int cbs_get(CBS *cbs, const uint8_t **p, size_t n) { in cbs_get()
41 int CBS_skip(CBS *cbs, size_t len) { in CBS_skip()
46 const uint8_t *CBS_data(const CBS *cbs) { in CBS_data()
50 size_t CBS_len(const CBS *cbs) { in CBS_len()
54 int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len) { in CBS_stow()
70 int CBS_strdup(const CBS *cbs, char **out_ptr) { in CBS_strdup()
78 int CBS_contains_zero_byte(const CBS *cbs) { in CBS_contains_zero_byte()
82 int CBS_mem_equal(const CBS *cbs, const uint8_t *data, size_t len) { in CBS_mem_equal()
89 static int cbs_get_u(CBS *cbs, uint32_t *out, size_t len) { in cbs_get_u()
[all …]
Dber.c31 static int cbs_find_ber(CBS *orig_in, char *ber_found, unsigned depth) { in cbs_find_ber()
32 CBS in; in cbs_find_ber()
42 CBS contents; in cbs_find_ber()
78 static char is_eoc(size_t header_len, CBS *contents) { in is_eoc()
89 static int cbs_convert_ber(CBS *in, CBB *out, char squash_header, in cbs_convert_ber()
96 CBS contents; in cbs_convert_ber()
127 CBS in_copy, inner_contents; in cbs_convert_ber()
196 int CBS_asn1_ber_to_der(CBS *in, uint8_t **out, size_t *out_len) { in CBS_asn1_ber_to_der()
Dinternal.h39 OPENSSL_EXPORT int CBS_asn1_ber_to_der(CBS *in, uint8_t **out, size_t *out_len);
45 OPENSSL_EXPORT int CBS_get_any_ber_asn1_element(CBS *cbs, CBS *out,
Dbytestring_test.cc31 CBS data; in TestSkip()
47 CBS data; in TestGetUint()
66 CBS data, prefixed; in TestGetPrefixed()
87 CBS data, prefixed; in TestGetPrefixedBad()
118 CBS data, contents; in TestGetASN1()
235 CBS data; in TestGetOptionalASN1Bool()
491 CBS in; in DoBerConvert()
609 CBS cbs; in TestASN1Uint64()
640 CBS cbs; in TestASN1Uint64()
/external/boringssl/src/include/openssl/
Dbytestring.h44 OPENSSL_EXPORT void CBS_init(CBS *cbs, const uint8_t *data, size_t len);
48 OPENSSL_EXPORT int CBS_skip(CBS *cbs, size_t len);
51 OPENSSL_EXPORT const uint8_t *CBS_data(const CBS *cbs);
54 OPENSSL_EXPORT size_t CBS_len(const CBS *cbs);
61 OPENSSL_EXPORT int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len);
70 OPENSSL_EXPORT int CBS_strdup(const CBS *cbs, char **out_ptr);
74 OPENSSL_EXPORT int CBS_contains_zero_byte(const CBS *cbs);
79 OPENSSL_EXPORT int CBS_mem_equal(const CBS *cbs, const uint8_t *data,
84 OPENSSL_EXPORT int CBS_get_u8(CBS *cbs, uint8_t *out);
88 OPENSSL_EXPORT int CBS_get_u16(CBS *cbs, uint16_t *out);
[all …]
Dobj.h103 OPENSSL_EXPORT int OBJ_cbs2nid(const CBS *cbs);
Dpkcs8.h130 CBS *in, const char *password);
Dbase.h184 typedef struct cbs_st CBS; typedef
/external/boringssl/src/crypto/x509/
Dpkcs7.c37 static int pkcs7_parse_header(uint8_t **der_bytes, CBS *out, CBS *cbs) { in pkcs7_parse_header()
39 CBS in, content_info, content_type, wrapped_signed_data, signed_data; in pkcs7_parse_header()
93 int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs) { in PKCS7_get_certificates()
94 CBS signed_data, certificates; in PKCS7_get_certificates()
112 CBS cert; in PKCS7_get_certificates()
151 int PKCS7_get_CRLs(STACK_OF(X509_CRL) *out_crls, CBS *cbs) { in PKCS7_get_CRLs()
152 CBS signed_data, crls; in PKCS7_get_CRLs()
180 CBS crl_data; in PKCS7_get_CRLs()
233 CBS cbs; in PKCS7_get_PEM_certificates()
255 CBS cbs; in PKCS7_get_PEM_CRLs()
Dpkcs7_test.c471 CBS pkcs7; in test_cert_reparse()
535 CBS pkcs7; in test_crl_reparse()
/external/boringssl/src/ssl/
Dt1_reneg.c143 int ssl_parse_clienthello_renegotiate_ext(SSL *s, CBS *cbs, int *out_alert) { in ssl_parse_clienthello_renegotiate_ext()
144 CBS renegotiated_connection; in ssl_parse_clienthello_renegotiate_ext()
199 int ssl_parse_serverhello_renegotiate_ext(SSL *s, CBS *cbs, int *out_alert) { in ssl_parse_serverhello_renegotiate_ext()
202 CBS renegotiated_connection; in ssl_parse_serverhello_renegotiate_ext()
Dt1_lib.c190 static int tls1_check_duplicate_extensions(const CBS *cbs) { in tls1_check_duplicate_extensions()
191 CBS extensions = *cbs; in tls1_check_duplicate_extensions()
199 CBS extension; in tls1_check_duplicate_extensions()
224 CBS extension; in tls1_check_duplicate_extensions()
250 CBS client_hello, session_id, cipher_suites, compression_methods, extensions; in ssl_early_callback_init()
268 CBS cookie; in ssl_early_callback_init()
314 CBS extensions; in SSL_early_callback_ctx_extension_get()
320 CBS extension; in SSL_early_callback_ctx_extension_get()
407 int tls1_check_curve(SSL *s, CBS *cbs, uint16_t *out_curve_id) { in tls1_check_curve()
684 CBS *cbs, EVP_PKEY *pkey) { in tls12_check_peer_sigalg()
[all …]
Dd1_srtp.c285 int ssl_parse_clienthello_use_srtp_ext(SSL *s, CBS *cbs, int *out_alert) { in ssl_parse_clienthello_use_srtp_ext()
286 CBS profile_ids, srtp_mki; in ssl_parse_clienthello_use_srtp_ext()
377 int ssl_parse_serverhello_use_srtp_ext(SSL *s, CBS *cbs, int *out_alert) { in ssl_parse_serverhello_use_srtp_ext()
378 CBS profile_ids, srtp_mki; in ssl_parse_serverhello_use_srtp_ext()
Dssl_asn1.c369 static int d2i_SSL_SESSION_get_string(CBS *cbs, char **out, unsigned tag) { in d2i_SSL_SESSION_get_string()
370 CBS value; in d2i_SSL_SESSION_get_string()
398 static int d2i_SSL_SESSION_get_octet_string(CBS *cbs, uint8_t **out_ptr, in d2i_SSL_SESSION_get_octet_string()
400 CBS value; in d2i_SSL_SESSION_get_octet_string()
414 CBS cbs, session, cipher, session_id, master_key; in d2i_SSL_SESSION()
415 CBS peer, sid_ctx, peer_sha256, original_handshake_hash; in d2i_SSL_SESSION()
Dinternal.h806 STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *s, const CBS *cbs);
1040 int tls1_check_curve(SSL *s, CBS *cbs, uint16_t *out_curve_id);
1068 int ssl_parse_clienthello_tlsext(SSL *s, CBS *cbs);
1069 int ssl_parse_serverhello_tlsext(SSL *s, CBS *cbs);
1141 int ssl_parse_serverhello_renegotiate_ext(SSL *s, CBS *cbs, int *out_alert);
1144 int ssl_parse_clienthello_renegotiate_ext(SSL *s, CBS *cbs, int *out_alert);
1146 int tls1_process_sigalgs(SSL *s, const CBS *sigalgs);
1154 CBS *cbs, EVP_PKEY *pkey);
1158 int ssl_parse_clienthello_use_srtp_ext(SSL *s, CBS *cbs, int *out_alert);
1160 int ssl_parse_serverhello_use_srtp_ext(SSL *s, CBS *cbs, int *out_alert);
Ds3_srvr.c679 CBS v2_client_hello, cipher_specs, session_id, challenge; in ssl3_get_v2_client_hello()
815 CBS client_hello; in ssl3_get_client_hello()
817 CBS client_random, session_id, cipher_suites, compression_methods; in ssl3_get_client_hello()
900 CBS cookie; in ssl3_get_client_hello()
1592 CBS client_key_exchange; in ssl3_get_client_key_exchange()
1626 CBS psk_identity; in ssl3_get_client_key_exchange()
1679 CBS encrypted_premaster_secret; in ssl3_get_client_key_exchange()
1695 CBS copy = client_key_exchange; in ssl3_get_client_key_exchange()
1802 CBS dh_Yc; in ssl3_get_client_key_exchange()
1854 CBS ecdh_Yc; in ssl3_get_client_key_exchange()
[all …]
Ds3_clnt.c729 CBS server_hello, server_random, session_id; in ssl3_get_server_hello()
926 CBS cbs, certificate_list; in ssl3_get_server_certificate()
953 CBS certificate; in ssl3_get_server_certificate()
1067 CBS server_key_exchange, server_key_exchange_orig, parameter; in ssl3_get_server_key_exchange()
1129 CBS psk_identity_hint; in ssl3_get_server_key_exchange()
1164 CBS dh_p, dh_g, dh_Ys; in ssl3_get_server_key_exchange()
1209 CBS point; in ssl3_get_server_key_exchange()
1291 CBS signature; in ssl3_get_server_key_exchange()
1369 CBS cbs; in ssl3_get_certificate_request()
1370 CBS certificate_types; in ssl3_get_certificate_request()
[all …]
Dd1_clnt.c516 CBS hello_verify_request, cookie; in dtls1_get_hello_verify()
/external/boringssl/src/crypto/pkcs8/
Dpkcs8.c632 static int PKCS12_handle_content_info(CBS *content_info, unsigned depth,
637 static int PKCS12_handle_content_infos(CBS *content_infos, in PKCS12_handle_content_infos()
642 CBS in; in PKCS12_handle_content_infos()
675 CBS content_info; in PKCS12_handle_content_infos()
700 static int PKCS12_handle_content_info(CBS *content_info, unsigned depth, in PKCS12_handle_content_info()
702 CBS content_type, wrapped_contents, contents, content_infos; in PKCS12_handle_content_info()
720 CBS version_bytes, eci, contents_type, ai, encrypted_contents; in PKCS12_handle_content_info()
772 CBS octet_string_contents; in PKCS12_handle_content_info()
824 CBS cert_bag, cert_type, wrapped_cert, cert; in PKCS12_handle_content_info()
867 CBS *ber_in, const char *password) { in PKCS12_get_key_and_certs()
[all …]
Dpkcs12_test.cc690 CBS pkcs12; in Test()
/external/tcpdump/tests/
Ddcb_ets.out42 Willing:0, CBS:0, RES:0, Max TCs:0
139 Willing:0, CBS:0, RES:0, Max TCs:0
223 Willing:0, CBS:0, RES:0, Max TCs:0
321 Willing:0, CBS:0, RES:0, Max TCs:0
376 Willing:0, CBS:0, RES:0, Max TCs:0
443 Willing:0, CBS:0, RES:0, Max TCs:0
498 Willing:0, CBS:0, RES:0, Max TCs:0
577 Willing:0, CBS:0, RES:0, Max TCs:0
632 Willing:0, CBS:0, RES:0, Max TCs:0
687 Willing:0, CBS:0, RES:0, Max TCs:0
[all …]
/external/iproute2/examples/diffserv/
DREADME29 and 31 is for the mode where only a CIR and CBS are defined whereas
30 32 stands for a mode where a CIR/CBS + PIR/EBS are defined.
/external/boringssl/src/tool/
Dpkcs12.cc119 CBS pkcs12; in DoPKCS12()
/external/boringssl/src/crypto/evp/
Dp_rsa.c475 CBS_init((CBS *)p2, rctx->oaep_label, rctx->oaep_labellen); in pkey_rsa_ctrl()
590 CBS label; in EVP_PKEY_CTX_get0_rsa_oaep_label()
Devp_extra_test.cc460 CBS cert, cert_body, tbs_cert, algorithm, signature; in TestEVP_DigestVerifyInitFromAlgorithm()

12