/external/rust/crates/quiche/deps/boringssl/src/include/openssl/ |
D | bytestring.h | 59 OPENSSL_EXPORT void CBS_init(CBS *cbs, const uint8_t *data, size_t len); 63 OPENSSL_EXPORT int CBS_skip(CBS *cbs, size_t len); 66 OPENSSL_EXPORT const uint8_t *CBS_data(const CBS *cbs); 69 OPENSSL_EXPORT size_t CBS_len(const CBS *cbs); 76 OPENSSL_EXPORT int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len); 85 OPENSSL_EXPORT int CBS_strdup(const CBS *cbs, char **out_ptr); 89 OPENSSL_EXPORT int CBS_contains_zero_byte(const CBS *cbs); 94 OPENSSL_EXPORT int CBS_mem_equal(const CBS *cbs, const uint8_t *data, 99 OPENSSL_EXPORT int CBS_get_u8(CBS *cbs, uint8_t *out); 103 OPENSSL_EXPORT int CBS_get_u16(CBS *cbs, uint16_t *out); [all …]
|
/external/boringssl/src/include/openssl/ |
D | bytestring.h | 59 OPENSSL_EXPORT void CBS_init(CBS *cbs, const uint8_t *data, size_t len); 63 OPENSSL_EXPORT int CBS_skip(CBS *cbs, size_t len); 66 OPENSSL_EXPORT const uint8_t *CBS_data(const CBS *cbs); 69 OPENSSL_EXPORT size_t CBS_len(const CBS *cbs); 76 OPENSSL_EXPORT int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len); 85 OPENSSL_EXPORT int CBS_strdup(const CBS *cbs, char **out_ptr); 89 OPENSSL_EXPORT int CBS_contains_zero_byte(const CBS *cbs); 94 OPENSSL_EXPORT int CBS_mem_equal(const CBS *cbs, const uint8_t *data, 99 OPENSSL_EXPORT int CBS_get_u8(CBS *cbs, uint8_t *out); 103 OPENSSL_EXPORT int CBS_get_u16(CBS *cbs, uint16_t *out); [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/bytestring/ |
D | cbs.c | 26 void CBS_init(CBS *cbs, const uint8_t *data, size_t len) { in CBS_init() 31 static int cbs_get(CBS *cbs, const uint8_t **p, size_t n) { in cbs_get() 42 int CBS_skip(CBS *cbs, size_t len) { in CBS_skip() 47 const uint8_t *CBS_data(const CBS *cbs) { in CBS_data() 51 size_t CBS_len(const CBS *cbs) { in CBS_len() 55 int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len) { in CBS_stow() 71 int CBS_strdup(const CBS *cbs, char **out_ptr) { in CBS_strdup() 79 int CBS_contains_zero_byte(const CBS *cbs) { in CBS_contains_zero_byte() 83 int CBS_mem_equal(const CBS *cbs, const uint8_t *data, size_t len) { in CBS_mem_equal() 90 static int cbs_get_u(CBS *cbs, uint64_t *out, size_t len) { in cbs_get_u() [all …]
|
D | internal.h | 40 OPENSSL_EXPORT int CBS_asn1_ber_to_der(CBS *in, CBS *out, 55 OPENSSL_EXPORT int CBS_get_asn1_implicit_string(CBS *in, CBS *out, 75 OPENSSL_EXPORT int cbs_get_utf8(CBS *cbs, uint32_t *out); 76 OPENSSL_EXPORT int cbs_get_latin1(CBS *cbs, uint32_t *out); 77 OPENSSL_EXPORT int cbs_get_ucs2_be(CBS *cbs, uint32_t *out); 78 OPENSSL_EXPORT int cbs_get_utf32_be(CBS *cbs, uint32_t *out);
|
D | ber.c | 56 static int cbs_find_ber(const CBS *orig_in, char *ber_found, unsigned depth) { in cbs_find_ber() 57 CBS in; in cbs_find_ber() 67 CBS contents; in cbs_find_ber() 99 static char is_eoc(size_t header_len, CBS *contents) { in is_eoc() 111 static int cbs_convert_ber(CBS *in, CBB *out, unsigned string_tag, in cbs_convert_ber() 120 CBS contents; in cbs_convert_ber() 192 int CBS_asn1_ber_to_der(CBS *in, CBS *out, uint8_t **out_storage) { in CBS_asn1_ber_to_der() 222 int CBS_get_asn1_implicit_string(CBS *in, CBS *out, uint8_t **out_storage, in CBS_get_asn1_implicit_string() 238 CBS child; in CBS_get_asn1_implicit_string() 245 CBS chunk; in CBS_get_asn1_implicit_string()
|
/external/boringssl/src/crypto/bytestring/ |
D | cbs.c | 26 void CBS_init(CBS *cbs, const uint8_t *data, size_t len) { in CBS_init() 31 static int cbs_get(CBS *cbs, const uint8_t **p, size_t n) { in cbs_get() 42 int CBS_skip(CBS *cbs, size_t len) { in CBS_skip() 47 const uint8_t *CBS_data(const CBS *cbs) { in CBS_data() 51 size_t CBS_len(const CBS *cbs) { in CBS_len() 55 int CBS_stow(const CBS *cbs, uint8_t **out_ptr, size_t *out_len) { in CBS_stow() 71 int CBS_strdup(const CBS *cbs, char **out_ptr) { in CBS_strdup() 79 int CBS_contains_zero_byte(const CBS *cbs) { in CBS_contains_zero_byte() 83 int CBS_mem_equal(const CBS *cbs, const uint8_t *data, size_t len) { in CBS_mem_equal() 90 static int cbs_get_u(CBS *cbs, uint64_t *out, size_t len) { in cbs_get_u() [all …]
|
D | internal.h | 40 OPENSSL_EXPORT int CBS_asn1_ber_to_der(CBS *in, CBS *out, 55 OPENSSL_EXPORT int CBS_get_asn1_implicit_string(CBS *in, CBS *out, 75 OPENSSL_EXPORT int cbs_get_utf8(CBS *cbs, uint32_t *out); 76 OPENSSL_EXPORT int cbs_get_latin1(CBS *cbs, uint32_t *out); 77 OPENSSL_EXPORT int cbs_get_ucs2_be(CBS *cbs, uint32_t *out); 78 OPENSSL_EXPORT int cbs_get_utf32_be(CBS *cbs, uint32_t *out);
|
D | ber.c | 56 static int cbs_find_ber(const CBS *orig_in, int *ber_found, unsigned depth) { in cbs_find_ber() 57 CBS in; in cbs_find_ber() 67 CBS contents; in cbs_find_ber() 96 static char is_eoc(size_t header_len, CBS *contents) { in is_eoc() 108 static int cbs_convert_ber(CBS *in, CBB *out, unsigned string_tag, in cbs_convert_ber() 117 CBS contents; in cbs_convert_ber() 191 int CBS_asn1_ber_to_der(CBS *in, CBS *out, uint8_t **out_storage) { in CBS_asn1_ber_to_der() 221 int CBS_get_asn1_implicit_string(CBS *in, CBS *out, uint8_t **out_storage, in CBS_get_asn1_implicit_string() 237 CBS child; in CBS_get_asn1_implicit_string() 244 CBS chunk; in CBS_get_asn1_implicit_string()
|
/external/rust/crates/quiche/deps/boringssl/src/fuzz/ |
D | ssl_ctx_api.cc | 227 static bool GetString(std::string *out, CBS *cbs) { in GetString() 228 CBS str; in GetString() 238 static bool GetVector(std::vector<T> *out, CBS *cbs) { in GetVector() 242 CBS child; in GetVector() 259 const std::function<void(SSL_CTX *, CBS *)> kAPIs[] = { in LLVMFuzzerTestOneInput() 260 [](SSL_CTX *ctx, CBS *cbs) { in LLVMFuzzerTestOneInput() 267 [](SSL_CTX *ctx, CBS *cbs) { SSL_CTX_get_quiet_shutdown(ctx); }, in LLVMFuzzerTestOneInput() 268 [](SSL_CTX *ctx, CBS *cbs) { in LLVMFuzzerTestOneInput() 275 [](SSL_CTX *ctx, CBS *cbs) { in LLVMFuzzerTestOneInput() 282 [](SSL_CTX *ctx, CBS *cbs) { in LLVMFuzzerTestOneInput() [all …]
|
/external/boringssl/src/ssl/ |
D | t1_lib.cc | 157 static bool tls1_check_duplicate_extensions(const CBS *cbs) { in tls1_check_duplicate_extensions() 160 CBS extensions = *cbs; in tls1_check_duplicate_extensions() 163 CBS extension; in tls1_check_duplicate_extensions() 185 CBS extension; in tls1_check_duplicate_extensions() 218 CBS client_hello, random, session_id; in ssl_client_hello_init() 234 CBS cookie; in ssl_client_hello_init() 241 CBS cipher_suites, compression_methods; in ssl_client_hello_init() 263 CBS extensions; in ssl_client_hello_init() 277 CBS *out, uint16_t extension_type) { in ssl_client_hello_get_extension() 278 CBS extensions; in ssl_client_hello_get_extension() [all …]
|
D | ssl_asn1.cc | 441 static int SSL_SESSION_parse_string(CBS *cbs, UniquePtr<char> *out, unsigned tag) { in SSL_SESSION_parse_string() 442 CBS value; in SSL_SESSION_parse_string() 468 static bool SSL_SESSION_parse_octet_string(CBS *cbs, Array<uint8_t> *out, in SSL_SESSION_parse_octet_string() 470 CBS value; in SSL_SESSION_parse_octet_string() 478 static int SSL_SESSION_parse_crypto_buffer(CBS *cbs, in SSL_SESSION_parse_crypto_buffer() 486 CBS child, value; in SSL_SESSION_parse_crypto_buffer() 504 CBS *cbs, uint8_t *out, uint8_t *out_len, uint8_t max_out, unsigned tag) { in SSL_SESSION_parse_bounded_octet_string() 505 CBS value; in SSL_SESSION_parse_bounded_octet_string() 516 static int SSL_SESSION_parse_long(CBS *cbs, long *out, unsigned tag, in SSL_SESSION_parse_long() 529 static int SSL_SESSION_parse_u32(CBS *cbs, uint32_t *out, unsigned tag, in SSL_SESSION_parse_u32() [all …]
|
D | ssl_cert.cc | 232 CBS cert_cbs; in check_leaf_cert_and_privkey() 349 uint8_t *out_leaf_sha256, CBS *cbs, in ssl_parse_cert_chain() 354 CBS certificate_list; in ssl_parse_cert_chain() 374 CBS certificate; in ssl_parse_cert_chain() 440 static bool ssl_cert_skip_to_spki(const CBS *in, CBS *out_tbs_cert) { in ssl_cert_skip_to_spki() 456 CBS buf = *in; in ssl_cert_skip_to_spki() 458 CBS toplevel; in ssl_cert_skip_to_spki() 482 UniquePtr<EVP_PKEY> ssl_cert_parse_pubkey(const CBS *in) { in ssl_cert_parse_pubkey() 483 CBS buf = *in, tbs_cert; in ssl_cert_parse_pubkey() 530 CBS cert_cbs; in ssl_cert_check_private_key() [all …]
|
/external/boringssl/src/crypto/ec_extra/ |
D | ec_asn1.c | 75 EC_KEY *EC_KEY_parse_private_key(CBS *cbs, const EC_GROUP *group) { in EC_KEY_parse_private_key() 76 CBS ec_private_key, private_key; in EC_KEY_parse_private_key() 95 CBS child; in EC_KEY_parse_private_key() 138 CBS child, public_key; in EC_KEY_parse_private_key() 247 static int parse_explicit_prime_curve(CBS *in, CBS *out_prime, CBS *out_a, in parse_explicit_prime_curve() 248 CBS *out_b, CBS *out_base_x, in parse_explicit_prime_curve() 249 CBS *out_base_y, CBS *out_order) { in parse_explicit_prime_curve() 252 CBS params, field_id, field_type, curve, base, cofactor; in parse_explicit_prime_curve() 311 static int integers_equal(const CBS *a, const uint8_t *b, size_t b_len) { in integers_equal() 313 CBS a_copy = *a; in integers_equal() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/ec_extra/ |
D | ec_asn1.c | 75 EC_KEY *EC_KEY_parse_private_key(CBS *cbs, const EC_GROUP *group) { in EC_KEY_parse_private_key() 76 CBS ec_private_key, private_key; in EC_KEY_parse_private_key() 95 CBS child; in EC_KEY_parse_private_key() 138 CBS child, public_key; in EC_KEY_parse_private_key() 246 static int is_unsigned_integer(const CBS *cbs) { in is_unsigned_integer() 262 static int parse_explicit_prime_curve(CBS *in, CBS *out_prime, CBS *out_a, in parse_explicit_prime_curve() 263 CBS *out_b, CBS *out_base_x, in parse_explicit_prime_curve() 264 CBS *out_base_y, CBS *out_order) { in parse_explicit_prime_curve() 267 CBS params, field_id, field_type, curve, base, cofactor; in parse_explicit_prime_curve() 326 static int integers_equal(const CBS *a, const uint8_t *b, size_t b_len) { in integers_equal() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/ssl/ |
D | t1_lib.cc | 152 static bool tls1_check_duplicate_extensions(const CBS *cbs) { in tls1_check_duplicate_extensions() 155 CBS extensions = *cbs; in tls1_check_duplicate_extensions() 158 CBS extension; in tls1_check_duplicate_extensions() 180 CBS extension; in tls1_check_duplicate_extensions() 213 CBS client_hello, random, session_id; in ssl_client_hello_init() 229 CBS cookie; in ssl_client_hello_init() 236 CBS cipher_suites, compression_methods; in ssl_client_hello_init() 258 CBS extensions; in ssl_client_hello_init() 272 CBS *out, uint16_t extension_type) { in ssl_client_hello_get_extension() 273 CBS extensions; in ssl_client_hello_get_extension() [all …]
|
D | ssl_asn1.cc | 421 static int SSL_SESSION_parse_string(CBS *cbs, UniquePtr<char> *out, unsigned tag) { in SSL_SESSION_parse_string() 422 CBS value; in SSL_SESSION_parse_string() 448 static bool SSL_SESSION_parse_octet_string(CBS *cbs, Array<uint8_t> *out, in SSL_SESSION_parse_octet_string() 450 CBS value; in SSL_SESSION_parse_octet_string() 458 static int SSL_SESSION_parse_crypto_buffer(CBS *cbs, in SSL_SESSION_parse_crypto_buffer() 466 CBS child, value; in SSL_SESSION_parse_crypto_buffer() 484 CBS *cbs, uint8_t *out, uint8_t *out_len, uint8_t max_out, unsigned tag) { in SSL_SESSION_parse_bounded_octet_string() 485 CBS value; in SSL_SESSION_parse_bounded_octet_string() 496 static int SSL_SESSION_parse_long(CBS *cbs, long *out, unsigned tag, in SSL_SESSION_parse_long() 509 static int SSL_SESSION_parse_u32(CBS *cbs, uint32_t *out, unsigned tag, in SSL_SESSION_parse_u32() [all …]
|
D | ssl_cert.cc | 232 CBS cert_cbs; in check_leaf_cert_and_privkey() 349 uint8_t *out_leaf_sha256, CBS *cbs, in ssl_parse_cert_chain() 354 CBS certificate_list; in ssl_parse_cert_chain() 374 CBS certificate; in ssl_parse_cert_chain() 440 static bool ssl_cert_skip_to_spki(const CBS *in, CBS *out_tbs_cert) { in ssl_cert_skip_to_spki() 456 CBS buf = *in; in ssl_cert_skip_to_spki() 458 CBS toplevel; in ssl_cert_skip_to_spki() 482 UniquePtr<EVP_PKEY> ssl_cert_parse_pubkey(const CBS *in) { in ssl_cert_parse_pubkey() 483 CBS buf = *in, tbs_cert; in ssl_cert_parse_pubkey() 530 CBS cert_cbs; in ssl_cert_check_private_key() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/dsa/ |
D | dsa_asn1.c | 67 static int parse_integer(CBS *cbs, BIGNUM **out) { in parse_integer() 85 DSA_SIG *DSA_SIG_parse(CBS *cbs) { in DSA_SIG_parse() 90 CBS child; in DSA_SIG_parse() 114 DSA *DSA_parse_public_key(CBS *cbs) { in DSA_parse_public_key() 119 CBS child; in DSA_parse_public_key() 147 DSA *DSA_parse_parameters(CBS *cbs) { in DSA_parse_parameters() 152 CBS child; in DSA_parse_parameters() 178 DSA *DSA_parse_private_key(CBS *cbs) { in DSA_parse_private_key() 184 CBS child; in DSA_parse_private_key() 233 CBS cbs; in d2i_DSA_SIG() [all …]
|
/external/boringssl/src/crypto/dsa/ |
D | dsa_asn1.c | 103 static int parse_integer(CBS *cbs, BIGNUM **out) { in parse_integer() 121 DSA_SIG *DSA_SIG_parse(CBS *cbs) { in DSA_SIG_parse() 126 CBS child; in DSA_SIG_parse() 150 DSA *DSA_parse_public_key(CBS *cbs) { in DSA_parse_public_key() 155 CBS child; in DSA_parse_public_key() 189 DSA *DSA_parse_parameters(CBS *cbs) { in DSA_parse_parameters() 194 CBS child; in DSA_parse_parameters() 226 DSA *DSA_parse_private_key(CBS *cbs) { in DSA_parse_private_key() 232 CBS child; in DSA_parse_private_key() 284 CBS cbs; in d2i_DSA_SIG() [all …]
|
/external/boringssl/src/crypto/evp/ |
D | evp_asn1.c | 80 static int parse_key_type(CBS *cbs, int *out_type) { in parse_key_type() 81 CBS oid; in parse_key_type() 98 EVP_PKEY *EVP_parse_public_key(CBS *cbs) { in EVP_parse_public_key() 100 CBS spki, algorithm, key; in EVP_parse_public_key() 154 EVP_PKEY *EVP_parse_private_key(CBS *cbs) { in EVP_parse_private_key() 156 CBS pkcs8, algorithm, key; in EVP_parse_private_key() 206 static EVP_PKEY *old_priv_decode(CBS *cbs, int type) { in old_priv_decode() 255 CBS cbs; in d2i_PrivateKey() 284 CBS cbs, sequence; in num_elements() 310 CBS cbs; in d2i_AutoPrivateKey() [all …]
|
D | p_rsa_asn1.c | 88 static int rsa_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) { in rsa_pub_decode() 92 CBS null; in rsa_pub_decode() 134 static int rsa_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) { in rsa_priv_decode() 136 CBS null; in rsa_priv_decode()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/ |
D | evp_asn1.c | 79 static int parse_key_type(CBS *cbs, int *out_type) { in parse_key_type() 80 CBS oid; in parse_key_type() 97 EVP_PKEY *EVP_parse_public_key(CBS *cbs) { in EVP_parse_public_key() 99 CBS spki, algorithm, key; in EVP_parse_public_key() 153 EVP_PKEY *EVP_parse_private_key(CBS *cbs) { in EVP_parse_private_key() 155 CBS pkcs8, algorithm, key; in EVP_parse_private_key() 205 static EVP_PKEY *old_priv_decode(CBS *cbs, int type) { in old_priv_decode() 254 CBS cbs; in d2i_PrivateKey() 283 CBS cbs, sequence; in num_elements() 309 CBS cbs; in d2i_AutoPrivateKey() [all …]
|
/external/boringssl/src/crypto/trust_token/ |
D | internal.h | 101 int pmbtoken_exp1_sign(const TRUST_TOKEN_ISSUER_KEY *key, CBB *cbb, CBS *cbs, 107 CBS *cbs, size_t count, uint32_t key_id); 126 int pmbtoken_exp2_sign(const TRUST_TOKEN_ISSUER_KEY *key, CBB *cbb, CBS *cbs, 132 CBS *cbs, size_t count, uint32_t key_id); 161 int voprf_exp2_sign(const TRUST_TOKEN_ISSUER_KEY *key, CBB *cbb, CBS *cbs, 167 CBS *cbs, size_t count, uint32_t key_id); 209 int (*sign)(const TRUST_TOKEN_ISSUER_KEY *key, CBB *cbb, CBS *cbs, 223 const STACK_OF(TRUST_TOKEN_PRETOKEN) * pretokens, CBS *cbs,
|
/external/boringssl/src/crypto/pkcs7/ |
D | pkcs7.c | 43 int pkcs7_parse_header(uint8_t **der_bytes, CBS *out, CBS *cbs) { in pkcs7_parse_header() 44 CBS in, content_info, content_type, wrapped_signed_data, signed_data; in pkcs7_parse_header() 86 int PKCS7_get_raw_certificates(STACK_OF(CRYPTO_BUFFER) *out_certs, CBS *cbs, in PKCS7_get_raw_certificates() 88 CBS signed_data, certificates; in PKCS7_get_raw_certificates() 106 CBS cert; in PKCS7_get_raw_certificates()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/pkcs7/ |
D | pkcs7.c | 43 int pkcs7_parse_header(uint8_t **der_bytes, CBS *out, CBS *cbs) { in pkcs7_parse_header() 44 CBS in, content_info, content_type, wrapped_signed_data, signed_data; in pkcs7_parse_header() 86 int PKCS7_get_raw_certificates(STACK_OF(CRYPTO_BUFFER) *out_certs, CBS *cbs, in PKCS7_get_raw_certificates() 88 CBS signed_data, certificates; in PKCS7_get_raw_certificates() 106 CBS cert; in PKCS7_get_raw_certificates()
|