/external/rust/crates/quiche/deps/boringssl/src/crypto/bytestring/ |
D | ber.c | 63 CBS_init(&in, CBS_data(orig_in), CBS_len(orig_in)); in cbs_find_ber() 66 while (CBS_len(&in) > 0) { in cbs_find_ber() 74 if (CBS_len(&contents) == header_len && in cbs_find_ber() 100 return header_len == 2 && CBS_len(contents) == 2 && in is_eoc() 119 while (CBS_len(in) > 0) { in cbs_convert_ber() 155 if (CBS_len(&contents) == header_len && header_len > 0 && in cbs_convert_ber() 179 CBS_len(&contents))) { in cbs_convert_ber() 211 if (!CBB_init(&cbb, CBS_len(in)) || in CBS_asn1_ber_to_der() 239 if (!CBB_init(&result, CBS_len(in)) || in CBS_get_asn1_implicit_string() 244 while (CBS_len(&child) > 0) { in CBS_get_asn1_implicit_string() [all …]
|
D | cbs.c | 51 size_t CBS_len(const CBS *cbs) { in CBS_len() function 301 size_t header_len = CBS_len(cbs) - CBS_len(&header); in cbs_get_any_asn1_element() 418 if (CBS_len(cbs) < 1) { in CBS_peek_asn1_tag() 435 size_t len = CBS_len(&bytes); in CBS_get_asn1_uint64() 470 const size_t len = CBS_len(&bytes); in CBS_get_asn1_int64() 501 CBS_len(&bytes) != 1) { in CBS_get_asn1_bool() 541 CBS_len(&child) != 0) { in CBS_get_optional_asn1_octet_string() 562 CBS_len(&child) != 0) { in CBS_get_optional_asn1_uint64() 582 CBS_len(&child2) != 1 || in CBS_get_optional_asn1_bool() 583 CBS_len(&child) != 0) { in CBS_get_optional_asn1_bool() [all …]
|
/external/boringssl/src/crypto/bytestring/ |
D | ber.c | 63 CBS_init(&in, CBS_data(orig_in), CBS_len(orig_in)); in cbs_find_ber() 66 while (CBS_len(&in) > 0) { in cbs_find_ber() 97 return header_len == 2 && CBS_len(contents) == 2 && in is_eoc() 116 while (CBS_len(in) > 0) { in cbs_convert_ber() 154 if (CBS_len(&contents) == header_len && header_len > 0 && in cbs_convert_ber() 178 CBS_len(&contents))) { in cbs_convert_ber() 210 if (!CBB_init(&cbb, CBS_len(in)) || in CBS_asn1_ber_to_der() 238 if (!CBB_init(&result, CBS_len(in)) || in CBS_get_asn1_implicit_string() 243 while (CBS_len(&child) > 0) { in CBS_get_asn1_implicit_string() 246 !CBB_add_bytes(&result, CBS_data(&chunk), CBS_len(&chunk))) { in CBS_get_asn1_implicit_string()
|
D | cbs.c | 51 size_t CBS_len(const CBS *cbs) { in CBS_len() function 304 size_t header_len = CBS_len(cbs) - CBS_len(&header); in cbs_get_any_asn1_element() 434 if (CBS_len(cbs) < 1) { in CBS_peek_asn1_tag() 452 size_t len = CBS_len(&bytes); in CBS_get_asn1_uint64() 473 const size_t len = CBS_len(&bytes); in CBS_get_asn1_int64() 492 CBS_len(&bytes) != 1) { in CBS_get_asn1_bool() 532 CBS_len(&child) != 0) { in CBS_get_optional_asn1_octet_string() 553 CBS_len(&child) != 0) { in CBS_get_optional_asn1_uint64() 573 CBS_len(&child2) != 1 || in CBS_get_optional_asn1_bool() 574 CBS_len(&child) != 0) { in CBS_get_optional_asn1_bool() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/fuzz/ |
D | bn_mod_exp.cc | 66 CBS_len(&child0) == 0 || in LLVMFuzzerTestOneInput() 68 CBS_len(&child1) == 0 || in LLVMFuzzerTestOneInput() 70 CBS_len(&child2) == 0) { in LLVMFuzzerTestOneInput() 77 if (CBS_len(&child0) > 512 || in LLVMFuzzerTestOneInput() 78 CBS_len(&child1) > 512 || in LLVMFuzzerTestOneInput() 79 CBS_len(&child2) > 512) { in LLVMFuzzerTestOneInput() 84 BN_bin2bn(CBS_data(&child0), CBS_len(&child0), nullptr)); in LLVMFuzzerTestOneInput() 87 BN_bin2bn(CBS_data(&child1), CBS_len(&child1), nullptr)); in LLVMFuzzerTestOneInput() 89 BN_bin2bn(CBS_data(&child2), CBS_len(&child2), nullptr)); in LLVMFuzzerTestOneInput()
|
D | bn_div.cc | 33 CBS_len(&child0) == 0 || in LLVMFuzzerTestOneInput() 36 CBS_len(&child1) == 0) { in LLVMFuzzerTestOneInput() 41 BN_bin2bn(CBS_data(&child0), CBS_len(&child0), nullptr)); in LLVMFuzzerTestOneInput() 44 BN_bin2bn(CBS_data(&child1), CBS_len(&child1), nullptr)); in LLVMFuzzerTestOneInput()
|
/external/boringssl/src/ssl/ |
D | t1_lib.cc | 161 while (CBS_len(&extensions) > 0) { in tls1_check_duplicate_extensions() 193 assert(CBS_len(&extensions) == 0); in tls1_check_duplicate_extensions() 216 out->client_hello_len = CBS_len(&msg.body); in ssl_client_hello_init() 223 CBS_len(&session_id) > SSL_MAX_SSL_SESSION_ID_LENGTH) { in ssl_client_hello_init() 228 out->random_len = CBS_len(&random); in ssl_client_hello_init() 230 out->session_id_len = CBS_len(&session_id); in ssl_client_hello_init() 236 CBS_len(&cookie) > DTLS1_COOKIE_LENGTH) { in ssl_client_hello_init() 243 CBS_len(&cipher_suites) < 2 || (CBS_len(&cipher_suites) & 1) != 0 || in ssl_client_hello_init() 245 CBS_len(&compression_methods) < 1) { in ssl_client_hello_init() 250 out->cipher_suites_len = CBS_len(&cipher_suites); in ssl_client_hello_init() [all …]
|
D | ssl_asn1.cc | 489 CBS_len(&child) != 0) { in SSL_SESSION_parse_crypto_buffer() 507 CBS_len(&value) > max_out) { in SSL_SESSION_parse_bounded_octet_string() 511 OPENSSL_memcpy(out, CBS_data(&value), CBS_len(&value)); in SSL_SESSION_parse_bounded_octet_string() 512 *out_len = (uint8_t)CBS_len(&value); in SSL_SESSION_parse_bounded_octet_string() 585 CBS_len(&cipher) != 0) { in SSL_SESSION_parse() 597 CBS_len(&session_id) > SSL3_MAX_SSL_SESSION_ID_LENGTH || in SSL_SESSION_parse() 599 CBS_len(&secret) > SSL_MAX_MASTER_KEY_LENGTH) { in SSL_SESSION_parse() 603 OPENSSL_memcpy(ret->session_id, CBS_data(&session_id), CBS_len(&session_id)); in SSL_SESSION_parse() 604 ret->session_id_length = CBS_len(&session_id); in SSL_SESSION_parse() 605 OPENSSL_memcpy(ret->secret, CBS_data(&secret), CBS_len(&secret)); in SSL_SESSION_parse() [all …]
|
D | handshake_client.cc | 339 if (*version != TLS1_2_VERSION || CBS_len(in) == 0) { in parse_supported_versions() 346 CBS_len(©) != 0) { in parse_supported_versions() 369 CBS_len(&supported_versions) != 0)) { in parse_supported_versions() 528 CBS_len(&cookie) > sizeof(ssl->d1->cookie) || in do_read_hello_verify_request() 529 CBS_len(&hello_verify_request) != 0) { in do_read_hello_verify_request() 535 OPENSSL_memcpy(ssl->d1->cookie, CBS_data(&cookie), CBS_len(&cookie)); in do_read_hello_verify_request() 536 ssl->d1->cookie_len = CBS_len(&cookie); in do_read_hello_verify_request() 570 CBS_len(&session_id) > SSL3_SESSION_ID_SIZE || in do_read_server_hello() 671 hs->new_session->session_id_length = CBS_len(&session_id); in do_read_server_hello() 673 CBS_len(&session_id)); in do_read_server_hello() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/ssl/ |
D | t1_lib.cc | 156 while (CBS_len(&extensions) > 0) { in tls1_check_duplicate_extensions() 188 assert(CBS_len(&extensions) == 0); in tls1_check_duplicate_extensions() 211 out->client_hello_len = CBS_len(&msg.body); in ssl_client_hello_init() 218 CBS_len(&session_id) > SSL_MAX_SSL_SESSION_ID_LENGTH) { in ssl_client_hello_init() 223 out->random_len = CBS_len(&random); in ssl_client_hello_init() 225 out->session_id_len = CBS_len(&session_id); in ssl_client_hello_init() 231 CBS_len(&cookie) > DTLS1_COOKIE_LENGTH) { in ssl_client_hello_init() 238 CBS_len(&cipher_suites) < 2 || (CBS_len(&cipher_suites) & 1) != 0 || in ssl_client_hello_init() 240 CBS_len(&compression_methods) < 1) { in ssl_client_hello_init() 245 out->cipher_suites_len = CBS_len(&cipher_suites); in ssl_client_hello_init() [all …]
|
D | ssl_asn1.cc | 469 CBS_len(&child) != 0) { in SSL_SESSION_parse_crypto_buffer() 487 CBS_len(&value) > max_out) { in SSL_SESSION_parse_bounded_octet_string() 491 OPENSSL_memcpy(out, CBS_data(&value), CBS_len(&value)); in SSL_SESSION_parse_bounded_octet_string() 492 *out_len = (uint8_t)CBS_len(&value); in SSL_SESSION_parse_bounded_octet_string() 565 CBS_len(&cipher) != 0) { in SSL_SESSION_parse() 577 CBS_len(&session_id) > SSL3_MAX_SSL_SESSION_ID_LENGTH || in SSL_SESSION_parse() 579 CBS_len(&master_key) > SSL_MAX_MASTER_KEY_LENGTH) { in SSL_SESSION_parse() 583 OPENSSL_memcpy(ret->session_id, CBS_data(&session_id), CBS_len(&session_id)); in SSL_SESSION_parse() 584 ret->session_id_length = CBS_len(&session_id); in SSL_SESSION_parse() 585 OPENSSL_memcpy(ret->master_key, CBS_data(&master_key), CBS_len(&master_key)); in SSL_SESSION_parse() [all …]
|
D | handshake_client.cc | 339 if (*version != TLS1_2_VERSION || CBS_len(in) == 0) { in parse_supported_versions() 346 CBS_len(©) != 0) { in parse_supported_versions() 370 CBS_len(&supported_versions) != 0)) { in parse_supported_versions() 529 CBS_len(&cookie) > sizeof(ssl->d1->cookie) || in do_read_hello_verify_request() 530 CBS_len(&hello_verify_request) != 0) { in do_read_hello_verify_request() 536 OPENSSL_memcpy(ssl->d1->cookie, CBS_data(&cookie), CBS_len(&cookie)); in do_read_hello_verify_request() 537 ssl->d1->cookie_len = CBS_len(&cookie); in do_read_hello_verify_request() 571 CBS_len(&session_id) > SSL3_SESSION_ID_SIZE || in do_read_server_hello() 675 hs->new_session->session_id_length = CBS_len(&session_id); in do_read_server_hello() 677 CBS_len(&session_id)); in do_read_server_hello() [all …]
|
/external/boringssl/src/crypto/pkcs8/ |
D | p5_pbev2.c | 217 CBS_len(param) != 0 || in PKCS5_pbe2_decrypt_init() 220 CBS_len(&pbe_param) != 0 || in PKCS5_pbe2_decrypt_init() 244 CBS_len(&kdf) != 0 || in PKCS5_pbe2_decrypt_init() 272 if (CBS_len(&pbkdf2_params) != 0) { in PKCS5_pbe2_decrypt_init() 276 CBS_len(&pbkdf2_params) != 0) { in PKCS5_pbe2_decrypt_init() 295 CBS_len(&null) != 0 || in PKCS5_pbe2_decrypt_init() 296 CBS_len(&alg_id) != 0) { in PKCS5_pbe2_decrypt_init() 308 CBS_len(&enc_scheme) != 0) { in PKCS5_pbe2_decrypt_init() 314 pass_len, CBS_data(&salt), CBS_len(&salt), in PKCS5_pbe2_decrypt_init() 315 CBS_data(&iv), CBS_len(&iv), 0 /* decrypt */); in PKCS5_pbe2_decrypt_init()
|
D | pkcs8_x509.c | 158 if (ret == NULL || CBS_len(&cbs) != 0) { in EVP_PKCS82PKEY() 220 if (pkey == NULL || CBS_len(&cbs) != 0) { in PKCS8_decrypt() 303 CBS_len(&in) != 0) { in PKCS12_handle_sequence() 308 while (CBS_len(&child) > 0) { in PKCS12_handle_sequence() 361 while (CBS_len(attrs) != 0) { in parse_bag_attributes() 366 CBS_len(&attr) != 0) { in parse_bag_attributes() 375 CBS_len(&values) != 0 || in parse_bag_attributes() 376 CBS_len(&value) == 0) { in parse_bag_attributes() 382 if (!CBB_init(&cbb, CBS_len(&value))) { in parse_bag_attributes() 386 while (CBS_len(&value) != 0) { in parse_bag_attributes() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/pkcs8/ |
D | p5_pbev2.c | 217 CBS_len(param) != 0 || in PKCS5_pbe2_decrypt_init() 220 CBS_len(&pbe_param) != 0 || in PKCS5_pbe2_decrypt_init() 244 CBS_len(&kdf) != 0 || in PKCS5_pbe2_decrypt_init() 272 if (CBS_len(&pbkdf2_params) != 0) { in PKCS5_pbe2_decrypt_init() 276 CBS_len(&pbkdf2_params) != 0) { in PKCS5_pbe2_decrypt_init() 295 CBS_len(&null) != 0 || in PKCS5_pbe2_decrypt_init() 296 CBS_len(&alg_id) != 0) { in PKCS5_pbe2_decrypt_init() 308 CBS_len(&enc_scheme) != 0) { in PKCS5_pbe2_decrypt_init() 314 pass_len, CBS_data(&salt), CBS_len(&salt), in PKCS5_pbe2_decrypt_init() 315 CBS_data(&iv), CBS_len(&iv), 0 /* decrypt */); in PKCS5_pbe2_decrypt_init()
|
D | pkcs8_x509.c | 127 if (ret == NULL || CBS_len(&cbs) != 0) { 189 if (pkey == NULL || CBS_len(&cbs) != 0) { in PKCS8_decrypt() 272 CBS_len(&in) != 0) { in PKCS12_handle_sequence() 277 while (CBS_len(&child) > 0) { in PKCS12_handle_sequence() 330 while (CBS_len(attrs) != 0) { in parse_bag_attributes() 335 CBS_len(&attr) != 0) { in parse_bag_attributes() 344 CBS_len(&values) != 0 || in parse_bag_attributes() 345 CBS_len(&value) == 0) { in parse_bag_attributes() 351 if (!CBB_init(&cbb, CBS_len(&value))) { in parse_bag_attributes() 355 while (CBS_len(&value) != 0) { in parse_bag_attributes() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/ec_extra/ |
D | ec_asn1.c | 111 if (CBS_len(&child) != 0) { in EC_KEY_parse_private_key() 130 priv_key = BN_bin2bn(CBS_data(&private_key), CBS_len(&private_key), NULL); in EC_KEY_parse_private_key() 148 CBS_len(&public_key) == 0 || in EC_KEY_parse_private_key() 150 CBS_len(&public_key), NULL) || in EC_KEY_parse_private_key() 151 CBS_len(&child) != 0) { in EC_KEY_parse_private_key() 171 if (CBS_len(&ec_private_key) != 0) { in EC_KEY_parse_private_key() 247 if (CBS_len(cbs) == 0) { in is_unsigned_integer() 252 (byte == 0 && CBS_len(cbs) > 1 && (CBS_data(cbs)[1] & 0x80) == 0)) { in is_unsigned_integer() 275 CBS_len(&field_type) != sizeof(kPrimeField) || in parse_explicit_prime_curve() 280 CBS_len(&field_id) != 0 || in parse_explicit_prime_curve() [all …]
|
/external/boringssl/src/crypto/ec_extra/ |
D | ec_asn1.c | 111 if (CBS_len(&child) != 0) { in EC_KEY_parse_private_key() 130 priv_key = BN_bin2bn(CBS_data(&private_key), CBS_len(&private_key), NULL); in EC_KEY_parse_private_key() 148 CBS_len(&public_key) == 0 || in EC_KEY_parse_private_key() 150 CBS_len(&public_key), NULL) || in EC_KEY_parse_private_key() 151 CBS_len(&child) != 0) { in EC_KEY_parse_private_key() 171 if (CBS_len(&ec_private_key) != 0) { in EC_KEY_parse_private_key() 260 CBS_len(&field_type) != sizeof(kPrimeField) || in parse_explicit_prime_curve() 265 CBS_len(&field_id) != 0 || in parse_explicit_prime_curve() 271 CBS_len(&curve) != 0 || in parse_explicit_prime_curve() 277 CBS_len(¶ms) != 0) { in parse_explicit_prime_curve() [all …]
|
/external/boringssl/src/crypto/evp/ |
D | p_rsa_asn1.c | 94 CBS_len(&null) != 0 || in rsa_pub_decode() 95 CBS_len(params) != 0) { in rsa_pub_decode() 101 if (rsa == NULL || CBS_len(key) != 0) { in rsa_pub_decode() 138 CBS_len(&null) != 0 || in rsa_priv_decode() 139 CBS_len(params) != 0) { in rsa_priv_decode() 145 if (rsa == NULL || CBS_len(key) != 0) { in rsa_priv_decode()
|
D | p_ed25519_asn1.c | 120 if (CBS_len(params) != 0) { in ed25519_pub_decode() 125 return ed25519_set_pub_raw(out, CBS_data(key), CBS_len(key)); in ed25519_pub_decode() 160 if (CBS_len(params) != 0 || in ed25519_priv_decode() 162 CBS_len(key) != 0) { in ed25519_priv_decode() 167 return ed25519_set_priv_raw(out, CBS_data(&inner), CBS_len(&inner)); in ed25519_priv_decode()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/ |
D | p_rsa_asn1.c | 94 CBS_len(&null) != 0 || in rsa_pub_decode() 95 CBS_len(params) != 0) { in rsa_pub_decode() 101 if (rsa == NULL || CBS_len(key) != 0) { in rsa_pub_decode() 138 CBS_len(&null) != 0 || in rsa_priv_decode() 139 CBS_len(params) != 0) { in rsa_priv_decode() 145 if (rsa == NULL || CBS_len(key) != 0) { in rsa_priv_decode()
|
D | p_ed25519_asn1.c | 120 if (CBS_len(params) != 0) { in ed25519_pub_decode() 125 return ed25519_set_pub_raw(out, CBS_data(key), CBS_len(key)); in ed25519_pub_decode() 160 if (CBS_len(params) != 0 || in ed25519_priv_decode() 162 CBS_len(key) != 0) { in ed25519_priv_decode() 167 return ed25519_set_priv_raw(out, CBS_data(&inner), CBS_len(&inner)); in ed25519_priv_decode()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/bn_extra/ |
D | bn_asn1.c | 24 CBS_len(&child) == 0) { in BN_parse_asn1_unsigned() 36 CBS_len(&child) > 1 && in BN_parse_asn1_unsigned() 42 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; in BN_parse_asn1_unsigned()
|
/external/rust/crates/quiche/deps/boringssl/src/ssl/test/ |
D | test_state.cc | 115 CBS_len(&ticket_keys)) || in DeserializeContextState() 119 while (CBS_len(&sessions)) { in DeserializeContextState() 162 if (CBS_len(&pending_session)) { in Deserialize() 170 reinterpret_cast<const char *>(CBS_data(&text)), CBS_len(&text)); in Deserialize() 172 if (CBS_len(&in) > 0) { in Deserialize()
|
/external/boringssl/src/ssl/test/ |
D | test_state.cc | 115 CBS_len(&ticket_keys)) || in DeserializeContextState() 119 while (CBS_len(&sessions)) { in DeserializeContextState() 162 if (CBS_len(&pending_session)) { in Deserialize() 170 reinterpret_cast<const char *>(CBS_data(&text)), CBS_len(&text)); in Deserialize() 172 if (CBS_len(&in) > 0) { in Deserialize()
|