/external/boringssl/src/crypto/pkcs8/ |
D | pkcs8_x509.c | 263 if (!CBS_get_asn1(&in, &child, CBS_ASN1_SEQUENCE) || in PKCS12_handle_sequence() 271 if (!CBS_get_asn1(&child, &element, CBS_ASN1_SEQUENCE)) { in PKCS12_handle_sequence() 304 if (!CBS_get_asn1(safe_bag, &bag_id, CBS_ASN1_OBJECT) || in PKCS12_handle_safe_bag() 305 !CBS_get_asn1(safe_bag, &wrapped_value, in PKCS12_handle_safe_bag() 339 if (!CBS_get_asn1(&wrapped_value, &cert_bag, CBS_ASN1_SEQUENCE) || in PKCS12_handle_safe_bag() 340 !CBS_get_asn1(&cert_bag, &cert_type, CBS_ASN1_OBJECT) || in PKCS12_handle_safe_bag() 341 !CBS_get_asn1(&cert_bag, &wrapped_cert, in PKCS12_handle_safe_bag() 343 !CBS_get_asn1(&wrapped_cert, &cert, CBS_ASN1_OCTETSTRING)) { in PKCS12_handle_safe_bag() 400 if (!CBS_get_asn1(content_info, &content_type, CBS_ASN1_OBJECT) || in PKCS12_handle_content_info() 401 !CBS_get_asn1(content_info, &wrapped_contents, in PKCS12_handle_content_info() [all …]
|
D | p5_pbev2.c | 212 if (!CBS_get_asn1(param, &pbe_param, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init() 214 !CBS_get_asn1(&pbe_param, &kdf, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init() 215 !CBS_get_asn1(&pbe_param, &enc_scheme, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init() 217 !CBS_get_asn1(&kdf, &kdf_obj, CBS_ASN1_OBJECT) || in PKCS5_pbe2_decrypt_init() 218 !CBS_get_asn1(&enc_scheme, &enc_obj, CBS_ASN1_OBJECT)) { in PKCS5_pbe2_decrypt_init() 239 if (!CBS_get_asn1(&kdf, &pbkdf2_params, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init() 241 !CBS_get_asn1(&pbkdf2_params, &salt, CBS_ASN1_OCTETSTRING) || in PKCS5_pbe2_decrypt_init() 269 if (!CBS_get_asn1(&pbkdf2_params, &alg_id, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init() 270 !CBS_get_asn1(&alg_id, &prf, CBS_ASN1_OBJECT) || in PKCS5_pbe2_decrypt_init() 285 if (!CBS_get_asn1(&alg_id, &null, CBS_ASN1_NULL) || in PKCS5_pbe2_decrypt_init() [all …]
|
D | pkcs8.c | 258 if (!CBS_get_asn1(param, &pbe_param, CBS_ASN1_SEQUENCE) || in pkcs12_pbe_decrypt_init() 259 !CBS_get_asn1(&pbe_param, &salt, CBS_ASN1_OCTETSTRING) || in pkcs12_pbe_decrypt_init() 362 if (!CBS_get_asn1(algorithm, &obj, CBS_ASN1_OBJECT)) { in pkcs8_pbe_decrypt() 416 if (!CBS_get_asn1(cbs, &epki, CBS_ASN1_SEQUENCE) || in PKCS8_parse_encrypted_private_key() 417 !CBS_get_asn1(&epki, &algorithm, CBS_ASN1_SEQUENCE) || in PKCS8_parse_encrypted_private_key() 418 !CBS_get_asn1(&epki, &ciphertext, CBS_ASN1_OCTETSTRING) || in PKCS8_parse_encrypted_private_key()
|
/external/boringssl/src/crypto/ec/ |
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() 95 if (!CBS_get_asn1(&ec_private_key, &child, kParametersTag)) { in EC_KEY_parse_private_key() 144 if (!CBS_get_asn1(&ec_private_key, &child, kPublicKeyTag) || in EC_KEY_parse_private_key() 145 !CBS_get_asn1(&child, &public_key, CBS_ASN1_BITSTRING) || in EC_KEY_parse_private_key() 269 if (!CBS_get_asn1(in, ¶ms, CBS_ASN1_SEQUENCE) || in parse_explicit_prime_curve() 272 !CBS_get_asn1(¶ms, &field_id, CBS_ASN1_SEQUENCE) || in parse_explicit_prime_curve() 273 !CBS_get_asn1(&field_id, &field_type, CBS_ASN1_OBJECT) || in parse_explicit_prime_curve() 276 !CBS_get_asn1(&field_id, out_prime, CBS_ASN1_INTEGER) || in parse_explicit_prime_curve() 279 !CBS_get_asn1(¶ms, &curve, CBS_ASN1_SEQUENCE) || in parse_explicit_prime_curve() [all …]
|
/external/boringssl/src/crypto/x509/ |
D | pkcs7.c | 63 if (!CBS_get_asn1(&in, &content_info, CBS_ASN1_SEQUENCE) || in pkcs7_parse_header() 64 !CBS_get_asn1(&content_info, &content_type, CBS_ASN1_OBJECT)) { in pkcs7_parse_header() 75 if (!CBS_get_asn1(&content_info, &wrapped_signed_data, in pkcs7_parse_header() 77 !CBS_get_asn1(&wrapped_signed_data, &signed_data, CBS_ASN1_SEQUENCE) || in pkcs7_parse_header() 79 !CBS_get_asn1(&signed_data, NULL /* digests */, CBS_ASN1_SET) || in pkcs7_parse_header() 80 !CBS_get_asn1(&signed_data, NULL /* content */, CBS_ASN1_SEQUENCE)) { in pkcs7_parse_header() 109 if (!CBS_get_asn1(&signed_data, &certificates, in PKCS7_get_certificates() 172 !CBS_get_asn1(&signed_data, NULL /* certificates */, in PKCS7_get_CRLs() 177 if (!CBS_get_asn1(&signed_data, &crls, in PKCS7_get_CRLs()
|
/external/boringssl/src/crypto/evp/ |
D | evp_asn1.c | 79 if (!CBS_get_asn1(cbs, &oid, CBS_ASN1_OBJECT)) { in parse_key_type() 101 if (!CBS_get_asn1(cbs, &spki, CBS_ASN1_SEQUENCE) || in EVP_parse_public_key() 102 !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() 151 if (!CBS_get_asn1(cbs, &pkcs8, CBS_ASN1_SEQUENCE) || in EVP_parse_private_key() 154 !CBS_get_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in EVP_parse_private_key() 156 !CBS_get_asn1(&pkcs8, &key, CBS_ASN1_OCTETSTRING)) { in EVP_parse_private_key() 276 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() 143 if (!CBS_get_asn1(params, &null, CBS_ASN1_NULL) || in rsa_priv_decode()
|
/external/boringssl/src/ssl/ |
D | ssl_cert.c | 553 if (!CBS_get_asn1(&buf, &toplevel, CBS_ASN1_SEQUENCE) || in ssl_cert_skip_to_spki() 555 !CBS_get_asn1(&toplevel, out_tbs_cert, CBS_ASN1_SEQUENCE) || in ssl_cert_skip_to_spki() 561 !CBS_get_asn1(out_tbs_cert, NULL, CBS_ASN1_INTEGER) || in ssl_cert_skip_to_spki() 563 !CBS_get_asn1(out_tbs_cert, NULL, CBS_ASN1_SEQUENCE) || in ssl_cert_skip_to_spki() 565 !CBS_get_asn1(out_tbs_cert, NULL, CBS_ASN1_SEQUENCE) || in ssl_cert_skip_to_spki() 567 !CBS_get_asn1(out_tbs_cert, NULL, CBS_ASN1_SEQUENCE) || in ssl_cert_skip_to_spki() 569 !CBS_get_asn1(out_tbs_cert, NULL, CBS_ASN1_SEQUENCE)) { in ssl_cert_skip_to_spki() 648 !CBS_get_asn1(&tbs_cert, NULL, CBS_ASN1_SEQUENCE) || in ssl_cert_check_digital_signature_key_usage() 668 if (!CBS_get_asn1(&outer_extensions, &extensions, CBS_ASN1_SEQUENCE)) { in ssl_cert_check_digital_signature_key_usage() 674 if (!CBS_get_asn1(&extensions, &extension, CBS_ASN1_SEQUENCE) || in ssl_cert_check_digital_signature_key_usage() [all …]
|
D | ssl_asn1.c | 582 if (!CBS_get_asn1(cbs, &session, CBS_ASN1_SEQUENCE) || in SSL_SESSION_parse() 593 if (!CBS_get_asn1(&session, &cipher, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse() 606 if (!CBS_get_asn1(&session, &session_id, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse() 608 !CBS_get_asn1(&session, &master_key, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse() 620 if (!CBS_get_asn1(&session, &child, kTimeTag) || in SSL_SESSION_parse() 622 !CBS_get_asn1(&session, &child, kTimeoutTag) || in SSL_SESSION_parse() 658 if (!CBS_get_asn1(&session, &child, kPeerSHA256Tag) || in SSL_SESSION_parse() 659 !CBS_get_asn1(&child, &peer_sha256, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse()
|
/external/boringssl/src/crypto/bytestring/ |
D | cbs.c | 315 int CBS_get_asn1(CBS *cbs, CBS *out, unsigned tag_value) { in CBS_get_asn1() function 335 if (!CBS_get_asn1(cbs, &bytes, CBS_ASN1_INTEGER)) { in CBS_get_asn1_uint64() 374 if (!CBS_get_asn1(cbs, out, tag)) { in CBS_get_optional_asn1() 395 if (!CBS_get_asn1(&child, out, CBS_ASN1_OCTETSTRING) || in CBS_get_optional_asn1_octet_string() 436 if (!CBS_get_asn1(&child, &child2, CBS_ASN1_BOOLEAN) || in CBS_get_optional_asn1_bool()
|
D | ber.c | 230 return CBS_get_asn1(in, out, outer_tag); in CBS_get_asn1_implicit_string() 239 !CBS_get_asn1(in, &child, outer_tag | CBS_ASN1_CONSTRUCTED)) { in CBS_get_asn1_implicit_string() 245 if (!CBS_get_asn1(&child, &chunk, inner_tag) || in CBS_get_asn1_implicit_string()
|
D | bytestring_test.cc | 133 if (!CBS_get_asn1(&data, &contents, 0x30) || in TestGetASN1() 141 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1() 147 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1() 153 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1() 159 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1() 165 if (CBS_get_asn1(&data, &contents, 0x31)) { in TestGetASN1()
|
/external/boringssl/src/crypto/bn/ |
D | bn_asn1.c | 23 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) || in BN_parse_asn1_unsigned() 47 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) || in BN_parse_asn1_unsigned_buggy()
|
/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/rsa/ |
D | rsa_asn1.c | 103 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in parse_public_key() 190 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in rsa_parse_additional_prime() 213 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in RSA_parse_private_key() 241 if (!CBS_get_asn1(&child, &other_prime_infos, CBS_ASN1_SEQUENCE) || in RSA_parse_private_key()
|
/external/boringssl/src/crypto/digest/ |
D | digests.c | 357 if (!CBS_get_asn1(cbs, &algorithm, CBS_ASN1_SEQUENCE) || in EVP_parse_digest_algorithm() 358 !CBS_get_asn1(&algorithm, &oid, CBS_ASN1_OBJECT)) { in EVP_parse_digest_algorithm() 375 if (!CBS_get_asn1(&algorithm, ¶m, CBS_ASN1_NULL) || in EVP_parse_digest_algorithm()
|
/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/crypto/ecdsa/ |
D | ecdsa_asn1.c | 118 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in ECDSA_SIG_parse()
|
/external/boringssl/src/include/openssl/ |
D | bytestring.h | 180 OPENSSL_EXPORT int CBS_get_asn1(CBS *cbs, CBS *out, unsigned tag_value);
|
/external/conscrypt/common/src/jni/main/cpp/ |
D | NativeCrypto.cpp | 4707 if (!CBS_get_asn1(&cbs, &sequence, CBS_ASN1_SEQUENCE)) { in NativeCrypto_ASN1_seq_unpack_X509_bio() 8035 if (!CBS_get_asn1(cert_id, &hash_algorithm, CBS_ASN1_SEQUENCE) || in ocsp_cert_id_matches_certificate() 8036 !CBS_get_asn1(&hash_algorithm, &hash, CBS_ASN1_OBJECT)) { in ocsp_cert_id_matches_certificate() 8042 if (!CBS_get_asn1(cert_id, &issuer_name_hash, CBS_ASN1_OCTETSTRING)) { in ocsp_cert_id_matches_certificate() 8048 if (!CBS_get_asn1(cert_id, &issuer_key_hash, CBS_ASN1_OCTETSTRING)) { in ocsp_cert_id_matches_certificate() 8054 if (!CBS_get_asn1(cert_id, &serial, CBS_ASN1_INTEGER)) { in ocsp_cert_id_matches_certificate() 8107 if (!CBS_get_asn1(responses, &single_response, CBS_ASN1_SEQUENCE)) { in find_ocsp_single_response() 8117 if (!CBS_get_asn1(&single_response, &cert_id, CBS_ASN1_SEQUENCE)) { in find_ocsp_single_response() 8140 if (!CBS_get_asn1(ocsp_response, nullptr /* responseStatus */, CBS_ASN1_ENUMERATED) || in get_ocsp_basic_response() 8141 !CBS_get_asn1(ocsp_response, &tagged_response_bytes, in get_ocsp_basic_response() [all …]
|