Home
last modified time | relevance | path

Searched refs:CBS (Results 1 – 25 of 44) 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()
Dbytestring_test.cc34 CBS data; in TestSkip()
50 CBS data; in TestGetUint()
69 CBS data, prefixed; in TestGetPrefixed()
90 CBS data, prefixed; in TestGetPrefixedBad()
121 CBS data, contents; in TestGetASN1()
238 CBS data; in TestGetOptionalASN1Bool()
545 CBS in; in DoBerConvert()
663 CBS cbs; in TestASN1Uint64()
694 CBS cbs; in TestASN1Uint64()
Dinternal.h39 OPENSSL_EXPORT int CBS_asn1_ber_to_der(CBS *in, uint8_t **out, size_t *out_len);
/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 …]
Drsa.h339 OPENSSL_EXPORT RSA *RSA_parse_public_key(CBS *cbs);
343 OPENSSL_EXPORT RSA *RSA_parse_public_key_buggy(CBS *cbs);
364 OPENSSL_EXPORT RSA *RSA_parse_private_key(CBS *cbs);
Dobj.h103 OPENSSL_EXPORT int OBJ_cbs2nid(const CBS *cbs);
Dpkcs8.h115 CBS *in, const char *password);
/external/boringssl/src/ssl/
Dt1_lib.c191 static int tls1_check_duplicate_extensions(const CBS *cbs) { in tls1_check_duplicate_extensions()
192 CBS extensions = *cbs; in tls1_check_duplicate_extensions()
200 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()
669 int (*parse_serverhello)(SSL *ssl, uint8_t *out_alert, CBS *contents);
671 int (*parse_clienthello)(SSL *ssl, uint8_t *out_alert, CBS *contents);
[all …]
Dssl_asn1.c410 static int SSL_SESSION_parse_string(CBS *cbs, char **out, unsigned tag) { in SSL_SESSION_parse_string()
411 CBS value; in SSL_SESSION_parse_string()
439 static int SSL_SESSION_parse_octet_string(CBS *cbs, uint8_t **out_ptr, in SSL_SESSION_parse_octet_string()
441 CBS value; in SSL_SESSION_parse_octet_string()
456 CBS *cbs, uint8_t *out, unsigned *out_len, unsigned max_out, unsigned tag) { in SSL_SESSION_parse_bounded_octet_string()
457 CBS value; in SSL_SESSION_parse_bounded_octet_string()
468 static int SSL_SESSION_parse_long(CBS *cbs, long *out, unsigned tag, in SSL_SESSION_parse_long()
481 static int SSL_SESSION_parse_u32(CBS *cbs, uint32_t *out, unsigned tag, in SSL_SESSION_parse_u32()
494 static X509 *parse_x509(CBS *cbs) { in parse_x509()
508 static SSL_SESSION *SSL_SESSION_parse(CBS *cbs) { in SSL_SESSION_parse()
[all …]
Ds3_clnt.c745 CBS server_hello, server_random, session_id; in ssl3_get_server_hello()
975 CBS cbs, certificate_list; in ssl3_get_server_certificate()
1003 CBS certificate; in ssl3_get_server_certificate()
1069 CBS server_key_exchange, server_key_exchange_orig, parameter; in ssl3_get_server_key_exchange()
1108 CBS psk_identity_hint; in ssl3_get_server_key_exchange()
1141 CBS dh_p, dh_g, dh_Ys; in ssl3_get_server_key_exchange()
1191 CBS point; in ssl3_get_server_key_exchange()
1256 CBS signature; in ssl3_get_server_key_exchange()
1312 CBS cbs; in ssl3_get_certificate_request()
1313 CBS certificate_types; in ssl3_get_certificate_request()
[all …]
Ds3_srvr.c643 CBS v2_client_hello, cipher_specs, session_id, challenge; in ssl3_get_v2_client_hello()
774 CBS client_hello; in ssl3_get_client_hello()
776 CBS client_random, session_id, cipher_suites, compression_methods; in ssl3_get_client_hello()
858 CBS cookie; in ssl3_get_client_hello()
1458 CBS client_key_exchange; in ssl3_get_client_key_exchange()
1485 CBS psk_identity; in ssl3_get_client_key_exchange()
1550 CBS encrypted_premaster_secret; in ssl3_get_client_key_exchange()
1641 CBS peer_key; in ssl3_get_client_key_exchange()
1735 CBS certificate_verify, signature; in ssl3_get_cert_verify()
1841 CBS certificate_msg, certificate_list; in ssl3_get_client_certificate()
[all …]
Ddtls_record.c178 CBS cbs; in dtls_open_record()
185 CBS body; in dtls_open_record()
Dtls_record.c176 CBS cbs; in tls_open_record()
205 CBS body; in tls_open_record()
Dinternal.h482 const CBS *extension);
484 const CBS *extension);
998 STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *ssl, const CBS *cbs);
1217 int ssl_parse_clienthello_tlsext(SSL *ssl, CBS *cbs);
1218 int ssl_parse_serverhello_tlsext(SSL *ssl, CBS *cbs);
1300 int tls1_parse_peer_sigalgs(SSL *ssl, const CBS *sigalgs);
Dcustom_extensions.c131 const CBS *extension) { in custom_ext_parse_serverhello()
158 const CBS *extension) { in custom_ext_parse_clienthello()
/external/boringssl/src/crypto/rsa/
Drsa_asn1.c72 static int parse_integer_buggy(CBS *cbs, BIGNUM **out, int buggy) { in parse_integer_buggy()
84 static int parse_integer(CBS *cbs, BIGNUM **out) { in parse_integer()
97 static RSA *parse_public_key(CBS *cbs, int buggy) { in parse_public_key()
102 CBS child; in parse_public_key()
122 RSA *RSA_parse_public_key(CBS *cbs) { in RSA_parse_public_key()
126 RSA *RSA_parse_public_key_buggy(CBS *cbs) { in RSA_parse_public_key_buggy()
135 CBS cbs; in RSA_public_key_from_bytes()
181 static RSA_additional_prime *rsa_parse_additional_prime(CBS *cbs) { in rsa_parse_additional_prime()
189 CBS child; in rsa_parse_additional_prime()
203 RSA *RSA_parse_private_key(CBS *cbs) { in RSA_parse_private_key()
[all …]
/external/boringssl/src/crypto/x509/
Dpkcs7.c38 static int pkcs7_parse_header(uint8_t **der_bytes, CBS *out, CBS *cbs) { in pkcs7_parse_header()
40 CBS in, content_info, content_type, wrapped_signed_data, signed_data; in pkcs7_parse_header()
92 int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs) { in PKCS7_get_certificates()
93 CBS signed_data, certificates; in PKCS7_get_certificates()
110 CBS cert; in PKCS7_get_certificates()
152 int PKCS7_get_CRLs(STACK_OF(X509_CRL) *out_crls, CBS *cbs) { in PKCS7_get_CRLs()
153 CBS signed_data, crls; in PKCS7_get_CRLs()
180 CBS crl_data; in PKCS7_get_CRLs()
236 CBS cbs; in PKCS7_get_PEM_certificates()
258 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/crypto/bn/
Dbn_asn1.c21 int BN_cbs2unsigned(CBS *cbs, BIGNUM *ret) { in BN_cbs2unsigned()
22 CBS child; in BN_cbs2unsigned()
45 int BN_cbs2unsigned_buggy(CBS *cbs, BIGNUM *ret) { in BN_cbs2unsigned_buggy()
46 CBS child; in BN_cbs2unsigned_buggy()
/external/boringssl/src/crypto/evp/
Devp_extra_test.cc576 static bool ParseCertificate(CBS *out_tbs_cert, in ParseCertificate()
579 CBS *out_signature, in ParseCertificate()
580 const CBS *in_) { in ParseCertificate()
581 CBS in = *in_; in ParseCertificate()
582 CBS cert_body, tbs_cert, algorithm, signature; in ParseCertificate()
592 CBS tbs_cert_copy = tbs_cert; in ParseCertificate()
593 CBS tbs_cert_body, discard, spki; in ParseCertificate()
640 CBS in, tbs_cert, signature; in TestEVP_DigestVerifyInitFromAlgorithm()
662 CBS in, tbs_cert, signature; in TestBadPSSParameters()
/external/boringssl/src/crypto/ecdsa/
Decdsa_asn1.c111 ECDSA_SIG *ECDSA_SIG_parse(CBS *cbs) { in ECDSA_SIG_parse()
116 CBS child; in ECDSA_SIG_parse()
129 CBS cbs; in ECDSA_SIG_from_bytes()
204 CBS cbs; in d2i_ECDSA_SIG()
/external/boringssl/src/crypto/pkcs8/
Dpkcs8.c670 static int PKCS12_handle_content_info(CBS *content_info, unsigned depth,
675 static int PKCS12_handle_content_infos(CBS *content_infos, in PKCS12_handle_content_infos()
680 CBS in; in PKCS12_handle_content_infos()
712 CBS content_info; in PKCS12_handle_content_infos()
736 static int PKCS12_handle_content_info(CBS *content_info, unsigned depth, in PKCS12_handle_content_info()
738 CBS content_type, wrapped_contents, contents, content_infos; in PKCS12_handle_content_info()
755 CBS version_bytes, eci, contents_type, ai, encrypted_contents; in PKCS12_handle_content_info()
805 CBS octet_string_contents; in PKCS12_handle_content_info()
858 CBS cert_bag, cert_type, wrapped_cert, cert; in PKCS12_handle_content_info()
902 CBS *ber_in, const char *password) { in PKCS12_get_key_and_certs()
[all …]
/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.

12