/external/boringssl/src/crypto/pkcs8/ |
D | p5_pbev2.c | 216 if (!CBS_get_asn1(param, &pbe_param, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init() 218 !CBS_get_asn1(&pbe_param, &kdf, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init() 219 !CBS_get_asn1(&pbe_param, &enc_scheme, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init() 221 !CBS_get_asn1(&kdf, &kdf_obj, CBS_ASN1_OBJECT) || in PKCS5_pbe2_decrypt_init() 222 !CBS_get_asn1(&enc_scheme, &enc_obj, CBS_ASN1_OBJECT)) { in PKCS5_pbe2_decrypt_init() 243 if (!CBS_get_asn1(&kdf, &pbkdf2_params, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init() 245 !CBS_get_asn1(&pbkdf2_params, &salt, CBS_ASN1_OCTETSTRING) || in PKCS5_pbe2_decrypt_init() 274 if (!CBS_get_asn1(&pbkdf2_params, &alg_id, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init() 275 !CBS_get_asn1(&alg_id, &prf, CBS_ASN1_OBJECT) || in PKCS5_pbe2_decrypt_init() 294 if (!CBS_get_asn1(&alg_id, &null, CBS_ASN1_NULL) || in PKCS5_pbe2_decrypt_init() [all …]
|
D | pkcs8_x509.c | 271 if (!CBS_get_asn1(&in, &child, CBS_ASN1_SEQUENCE) || in PKCS12_handle_sequence() 279 if (!CBS_get_asn1(&child, &element, CBS_ASN1_SEQUENCE)) { in PKCS12_handle_sequence() 332 if (!CBS_get_asn1(attrs, &attr, CBS_ASN1_SEQUENCE) || in parse_bag_attributes() 333 !CBS_get_asn1(&attr, &oid, CBS_ASN1_OBJECT) || in parse_bag_attributes() 334 !CBS_get_asn1(&attr, &values, CBS_ASN1_SET) || in parse_bag_attributes() 343 !CBS_get_asn1(&values, &value, CBS_ASN1_BMPSTRING) || in parse_bag_attributes() 385 if (!CBS_get_asn1(safe_bag, &bag_id, CBS_ASN1_OBJECT) || in PKCS12_handle_safe_bag() 386 !CBS_get_asn1(safe_bag, &wrapped_value, in PKCS12_handle_safe_bag() 393 } else if (!CBS_get_asn1(safe_bag, &bag_attrs, CBS_ASN1_SET) || in PKCS12_handle_safe_bag() 430 if (!CBS_get_asn1(&wrapped_value, &cert_bag, CBS_ASN1_SEQUENCE) || in PKCS12_handle_safe_bag() [all …]
|
D | pkcs8.c | 262 if (!CBS_get_asn1(param, &pbe_param, CBS_ASN1_SEQUENCE) || in pkcs12_pbe_decrypt_init() 263 !CBS_get_asn1(&pbe_param, &salt, CBS_ASN1_OCTETSTRING) || in pkcs12_pbe_decrypt_init() 369 if (!CBS_get_asn1(algorithm, &obj, CBS_ASN1_OBJECT)) { in pkcs8_pbe_decrypt() 423 if (!CBS_get_asn1(cbs, &epki, CBS_ASN1_SEQUENCE) || in PKCS8_parse_encrypted_private_key() 424 !CBS_get_asn1(&epki, &algorithm, CBS_ASN1_SEQUENCE) || in PKCS8_parse_encrypted_private_key() 425 !CBS_get_asn1(&epki, &ciphertext, CBS_ASN1_OCTETSTRING) || in PKCS8_parse_encrypted_private_key()
|
/external/boringssl/src/ssl/ |
D | handoff.cc | 98 if (!CBS_get_asn1(in, &ciphers, CBS_ASN1_OCTETSTRING)) { in apply_remote_features() 141 if (!CBS_get_asn1(in, &curves, CBS_ASN1_OCTETSTRING)) { in apply_remote_features() 191 if (!CBS_get_asn1(&handoff_cbs, &seq, CBS_ASN1_SEQUENCE) || in SSL_apply_handoff() 198 if (!CBS_get_asn1(&seq, &transcript, CBS_ASN1_OCTETSTRING) || in SSL_apply_handoff() 199 !CBS_get_asn1(&seq, &hs_buf, CBS_ASN1_OCTETSTRING) || in SSL_apply_handoff() 336 if (!CBS_get_asn1(&handback_cbs, &seq, CBS_ASN1_SEQUENCE) || in SSL_apply_handback() 343 if (!CBS_get_asn1(&seq, &read_seq, CBS_ASN1_OCTETSTRING) || in SSL_apply_handback() 345 !CBS_get_asn1(&seq, &write_seq, CBS_ASN1_OCTETSTRING) || in SSL_apply_handback() 347 !CBS_get_asn1(&seq, &server_rand, CBS_ASN1_OCTETSTRING) || in SSL_apply_handback() 351 !CBS_get_asn1(&seq, &client_rand, CBS_ASN1_OCTETSTRING) || in SSL_apply_handback() [all …]
|
D | ssl_cert.cc | 460 if (!CBS_get_asn1(&buf, &toplevel, CBS_ASN1_SEQUENCE) || in ssl_cert_skip_to_spki() 462 !CBS_get_asn1(&toplevel, out_tbs_cert, CBS_ASN1_SEQUENCE) || in ssl_cert_skip_to_spki() 468 !CBS_get_asn1(out_tbs_cert, NULL, CBS_ASN1_INTEGER) || in ssl_cert_skip_to_spki() 470 !CBS_get_asn1(out_tbs_cert, NULL, CBS_ASN1_SEQUENCE) || in ssl_cert_skip_to_spki() 472 !CBS_get_asn1(out_tbs_cert, NULL, CBS_ASN1_SEQUENCE) || in ssl_cert_skip_to_spki() 474 !CBS_get_asn1(out_tbs_cert, NULL, CBS_ASN1_SEQUENCE) || in ssl_cert_skip_to_spki() 476 !CBS_get_asn1(out_tbs_cert, NULL, CBS_ASN1_SEQUENCE)) { in ssl_cert_skip_to_spki() 550 !CBS_get_asn1(&tbs_cert, NULL, CBS_ASN1_SEQUENCE) || in ssl_cert_check_key_usage() 571 if (!CBS_get_asn1(&outer_extensions, &extensions, CBS_ASN1_SEQUENCE)) { in ssl_cert_check_key_usage() 578 if (!CBS_get_asn1(&extensions, &extension, CBS_ASN1_SEQUENCE) || in ssl_cert_check_key_usage() [all …]
|
D | ssl_asn1.cc | 445 if (!CBS_get_asn1(cbs, &child, tag) || in SSL_SESSION_parse_crypto_buffer() 446 !CBS_get_asn1(&child, &value, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse_crypto_buffer() 524 if (!CBS_get_asn1(cbs, &session, CBS_ASN1_SEQUENCE) || in SSL_SESSION_parse() 541 if (!CBS_get_asn1(&session, &cipher, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse() 554 if (!CBS_get_asn1(&session, &session_id, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse() 556 !CBS_get_asn1(&session, &master_key, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse() 568 if (!CBS_get_asn1(&session, &child, kTimeTag) || in SSL_SESSION_parse() 570 !CBS_get_asn1(&session, &child, kTimeoutTag) || in SSL_SESSION_parse() 614 if (!CBS_get_asn1(&session, &child, kPeerSHA256Tag) || in SSL_SESSION_parse() 615 !CBS_get_asn1(&child, &peer_sha256, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse()
|
D | ssl_key_share.cc | 145 if (!CBS_get_asn1(in, &private_key, CBS_ASN1_OCTETSTRING)) { in Deserialize() 199 if (!CBS_get_asn1(in, &key, CBS_ASN1_OCTETSTRING) || in Deserialize()
|
/external/boringssl/src/crypto/pkcs7/ |
D | pkcs7.c | 51 !CBS_get_asn1(&in, &content_info, CBS_ASN1_SEQUENCE) || in pkcs7_parse_header() 52 !CBS_get_asn1(&content_info, &content_type, CBS_ASN1_OBJECT)) { in pkcs7_parse_header() 63 if (!CBS_get_asn1(&content_info, &wrapped_signed_data, in pkcs7_parse_header() 65 !CBS_get_asn1(&wrapped_signed_data, &signed_data, CBS_ASN1_SEQUENCE) || in pkcs7_parse_header() 67 !CBS_get_asn1(&signed_data, NULL /* digests */, CBS_ASN1_SET) || in pkcs7_parse_header() 68 !CBS_get_asn1(&signed_data, NULL /* content */, CBS_ASN1_SEQUENCE)) { in pkcs7_parse_header()
|
/external/boringssl/src/crypto/ec_extra/ |
D | ec_asn1.c | 78 if (!CBS_get_asn1(cbs, &ec_private_key, CBS_ASN1_SEQUENCE) || in EC_KEY_parse_private_key() 81 !CBS_get_asn1(&ec_private_key, &private_key, CBS_ASN1_OCTETSTRING)) { in EC_KEY_parse_private_key() 96 if (!CBS_get_asn1(&ec_private_key, &child, kParametersTag)) { in EC_KEY_parse_private_key() 140 if (!CBS_get_asn1(&ec_private_key, &child, kPublicKeyTag) || in EC_KEY_parse_private_key() 141 !CBS_get_asn1(&child, &public_key, CBS_ASN1_BITSTRING) || in EC_KEY_parse_private_key() 270 if (!CBS_get_asn1(in, ¶ms, CBS_ASN1_SEQUENCE) || in parse_explicit_prime_curve() 273 !CBS_get_asn1(¶ms, &field_id, CBS_ASN1_SEQUENCE) || in parse_explicit_prime_curve() 274 !CBS_get_asn1(&field_id, &field_type, CBS_ASN1_OBJECT) || in parse_explicit_prime_curve() 278 !CBS_get_asn1(&field_id, out_prime, CBS_ASN1_INTEGER) || in parse_explicit_prime_curve() 281 !CBS_get_asn1(¶ms, &curve, CBS_ASN1_SEQUENCE) || in parse_explicit_prime_curve() [all …]
|
/external/boringssl/src/crypto/evp/ |
D | evp_asn1.c | 81 if (!CBS_get_asn1(cbs, &oid, CBS_ASN1_OBJECT)) { in parse_key_type() 102 if (!CBS_get_asn1(cbs, &spki, CBS_ASN1_SEQUENCE) || in EVP_parse_public_key() 103 !CBS_get_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in EVP_parse_public_key() 104 !CBS_get_asn1(&spki, &key, CBS_ASN1_BITSTRING) || in EVP_parse_public_key() 158 if (!CBS_get_asn1(cbs, &pkcs8, CBS_ASN1_SEQUENCE) || in EVP_parse_private_key() 161 !CBS_get_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in EVP_parse_private_key() 162 !CBS_get_asn1(&pkcs8, &key, CBS_ASN1_OCTETSTRING)) { in EVP_parse_private_key() 286 if (!CBS_get_asn1(&cbs, &sequence, CBS_ASN1_SEQUENCE)) { in num_elements()
|
D | p_rsa_asn1.c | 93 if (!CBS_get_asn1(params, &null, CBS_ASN1_NULL) || in rsa_pub_decode() 137 if (!CBS_get_asn1(params, &null, CBS_ASN1_NULL) || in rsa_priv_decode()
|
D | p_ed25519_asn1.c | 161 !CBS_get_asn1(key, &inner, CBS_ASN1_OCTETSTRING) || in ed25519_priv_decode()
|
D | p_x25519_asn1.c | 159 !CBS_get_asn1(key, &inner, CBS_ASN1_OCTETSTRING) || in x25519_priv_decode()
|
/external/boringssl/src/crypto/bytestring/ |
D | cbs.c | 386 int CBS_get_asn1(CBS *cbs, CBS *out, unsigned tag_value) { in CBS_get_asn1() function 406 if (!CBS_get_asn1(cbs, &bytes, CBS_ASN1_INTEGER)) { in CBS_get_asn1_uint64() 443 if (!CBS_get_asn1(cbs, &bytes, CBS_ASN1_BOOLEAN) || in CBS_get_asn1_bool() 461 if (!CBS_get_asn1(cbs, out, tag)) { in CBS_get_optional_asn1() 483 if (!CBS_get_asn1(&child, out, CBS_ASN1_OCTETSTRING) || in CBS_get_optional_asn1_octet_string() 524 if (!CBS_get_asn1(&child, &child2, CBS_ASN1_BOOLEAN) || in CBS_get_optional_asn1_bool()
|
D | ber.c | 231 return CBS_get_asn1(in, out, outer_tag); in CBS_get_asn1_implicit_string() 240 !CBS_get_asn1(in, &child, outer_tag | CBS_ASN1_CONSTRUCTED)) { in CBS_get_asn1_implicit_string() 246 if (!CBS_get_asn1(&child, &chunk, inner_tag) || in CBS_get_asn1_implicit_string()
|
D | bytestring_test.cc | 129 ASSERT_TRUE(CBS_get_asn1(&data, &contents, CBS_ASN1_SEQUENCE)); in TEST() 134 EXPECT_FALSE(CBS_get_asn1(&data, &contents, CBS_ASN1_SEQUENCE)); in TEST() 138 EXPECT_FALSE(CBS_get_asn1(&data, &contents, CBS_ASN1_SEQUENCE)); in TEST() 142 EXPECT_FALSE(CBS_get_asn1(&data, &contents, CBS_ASN1_SEQUENCE)); in TEST() 146 EXPECT_FALSE(CBS_get_asn1(&data, &contents, CBS_ASN1_SEQUENCE)); in TEST() 150 EXPECT_FALSE(CBS_get_asn1(&data, &contents, 0x31)); in TEST() 274 EXPECT_TRUE(CBS_get_asn1(&cbs, &child, t.tag)); in TEST() 279 EXPECT_FALSE(CBS_get_asn1(&cbs, &child, t.tag + 1)); in TEST()
|
/external/boringssl/src/crypto/digest_extra/ |
D | digest_extra.c | 165 if (!CBS_get_asn1(cbs, &algorithm, CBS_ASN1_SEQUENCE) || in EVP_parse_digest_algorithm() 166 !CBS_get_asn1(&algorithm, &oid, CBS_ASN1_OBJECT)) { in EVP_parse_digest_algorithm() 183 if (!CBS_get_asn1(&algorithm, ¶m, CBS_ASN1_NULL) || in EVP_parse_digest_algorithm()
|
/external/boringssl/src/crypto/dsa/ |
D | dsa_asn1.c | 91 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in DSA_SIG_parse() 120 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in DSA_parse_public_key() 153 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in DSA_parse_parameters() 186 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in DSA_parse_private_key()
|
/external/boringssl/src/crypto/bn_extra/ |
D | bn_asn1.c | 23 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) || in BN_parse_asn1_unsigned()
|
/external/boringssl/src/crypto/rsa_extra/ |
D | rsa_asn1.c | 96 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in RSA_parse_public_key() 165 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in RSA_parse_private_key()
|
/external/boringssl/src/crypto/dh/ |
D | dh_asn1.c | 93 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in DH_parse_parameters()
|
/external/boringssl/src/ssl/test/ |
D | test_state.cc | 116 !CBS_get_asn1(&in, &sessions, CBS_ASN1_SEQUENCE)) { in DeserializeContextState()
|
/external/boringssl/src/crypto/ecdsa_extra/ |
D | ecdsa_asn1.c | 158 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in ECDSA_SIG_parse()
|
/external/boringssl/src/include/openssl/ |
D | bytestring.h | 215 OPENSSL_EXPORT int CBS_get_asn1(CBS *cbs, CBS *out, unsigned tag_value);
|
/external/conscrypt/common/src/jni/main/cpp/conscrypt/ |
D | native_crypto.cc | 4786 if (!CBS_get_asn1(cbs->cbs.get(), seq->cbs.get(), CBS_ASN1_SEQUENCE)) { in NativeCrypto_asn1_read_sequence() 4827 if (!CBS_get_asn1(cbs->cbs.get(), str.get(), CBS_ASN1_OCTETSTRING)) { in NativeCrypto_asn1_read_octetstring() 4866 if (!CBS_get_asn1(cbs->cbs.get(), &null_holder, CBS_ASN1_NULL)) { in NativeCrypto_asn1_read_null() 4877 if (!CBS_get_asn1(cbs->cbs.get(), &oid_cbs, CBS_ASN1_OBJECT)) { in NativeCrypto_asn1_read_oid() 5359 if (!CBS_get_asn1(&cbs, &sequence, CBS_ASN1_SEQUENCE)) { in NativeCrypto_ASN1_seq_unpack_X509_bio() 9004 if (!CBS_get_asn1(cert_id, &hash_algorithm, CBS_ASN1_SEQUENCE) || in ocsp_cert_id_matches_certificate() 9005 !CBS_get_asn1(&hash_algorithm, &hash, CBS_ASN1_OBJECT)) { in ocsp_cert_id_matches_certificate() 9011 if (!CBS_get_asn1(cert_id, &issuer_name_hash, CBS_ASN1_OCTETSTRING)) { in ocsp_cert_id_matches_certificate() 9017 if (!CBS_get_asn1(cert_id, &issuer_key_hash, CBS_ASN1_OCTETSTRING)) { in ocsp_cert_id_matches_certificate() 9023 if (!CBS_get_asn1(cert_id, &serial, CBS_ASN1_INTEGER)) { in ocsp_cert_id_matches_certificate() [all …]
|