Home
last modified time | relevance | path

Searched refs:CBS_get_asn1 (Results 1 – 11 of 11) sorted by relevance

/external/boringssl/src/crypto/x509/
Dpkcs7.c55 if (!CBS_get_asn1(&in, &content_info, CBS_ASN1_SEQUENCE) || in pkcs7_parse_header()
56 !CBS_get_asn1(&content_info, &content_type, CBS_ASN1_OBJECT)) { in pkcs7_parse_header()
66 if (!CBS_get_asn1(&content_info, &wrapped_signed_data, in pkcs7_parse_header()
68 !CBS_get_asn1(&wrapped_signed_data, &signed_data, CBS_ASN1_SEQUENCE) || in pkcs7_parse_header()
70 !CBS_get_asn1(&signed_data, NULL /* digests */, CBS_ASN1_SET) || in pkcs7_parse_header()
71 !CBS_get_asn1(&signed_data, NULL /* content */, CBS_ASN1_SEQUENCE)) { in pkcs7_parse_header()
103 if (!CBS_get_asn1(&signed_data, &certificates, in PKCS7_get_certificates()
168 !CBS_get_asn1(&signed_data, NULL /* certificates */, in PKCS7_get_CRLs()
173 if (!CBS_get_asn1(&signed_data, &crls, in PKCS7_get_CRLs()
/external/boringssl/src/crypto/pkcs8/
Dpkcs8.c706 if (!CBS_get_asn1(&in, &in, CBS_ASN1_SEQUENCE)) { in PKCS12_handle_content_infos()
713 if (!CBS_get_asn1(&in, &content_info, CBS_ASN1_SEQUENCE)) { in PKCS12_handle_content_infos()
741 if (!CBS_get_asn1(content_info, &content_type, CBS_ASN1_OBJECT) || in PKCS12_handle_content_info()
742 !CBS_get_asn1(content_info, &wrapped_contents, in PKCS12_handle_content_info()
761 if (!CBS_get_asn1(&wrapped_contents, &contents, CBS_ASN1_SEQUENCE) || in PKCS12_handle_content_info()
762 !CBS_get_asn1(&contents, &version_bytes, CBS_ASN1_INTEGER) || in PKCS12_handle_content_info()
765 !CBS_get_asn1(&contents, &eci, CBS_ASN1_SEQUENCE) || in PKCS12_handle_content_info()
766 !CBS_get_asn1(&eci, &contents_type, CBS_ASN1_OBJECT) || in PKCS12_handle_content_info()
770 !CBS_get_asn1(&eci, &encrypted_contents, in PKCS12_handle_content_info()
807 if (!CBS_get_asn1(&wrapped_contents, &octet_string_contents, in PKCS12_handle_content_info()
[all …]
/external/boringssl/src/crypto/evp/
Devp_extra_test.cc583 if (!CBS_get_asn1(&in, &cert_body, CBS_ASN1_SEQUENCE) || in ParseCertificate()
587 !CBS_get_asn1(&cert_body, &signature, CBS_ASN1_BITSTRING) || in ParseCertificate()
594 if (!CBS_get_asn1(&tbs_cert_copy, &tbs_cert_body, CBS_ASN1_SEQUENCE) || in ParseCertificate()
599 !CBS_get_asn1(&tbs_cert_body, &discard /* serialNumber */, in ParseCertificate()
601 !CBS_get_asn1(&tbs_cert_body, &discard /* signature */, in ParseCertificate()
605 !CBS_get_asn1(&tbs_cert_body, &discard /* validity */, in ParseCertificate()
/external/boringssl/src/crypto/bytestring/
Dcbs.c276 int CBS_get_asn1(CBS *cbs, CBS *out, unsigned tag_value) { in CBS_get_asn1() function
296 if (!CBS_get_asn1(cbs, &bytes, CBS_ASN1_INTEGER)) { in CBS_get_asn1_uint64()
335 if (!CBS_get_asn1(cbs, out, tag)) { in CBS_get_optional_asn1()
356 if (!CBS_get_asn1(&child, out, CBS_ASN1_OCTETSTRING) || in CBS_get_optional_asn1_octet_string()
397 if (!CBS_get_asn1(&child, &child2, CBS_ASN1_BOOLEAN) || in CBS_get_optional_asn1_bool()
Dbytestring_test.cc130 if (!CBS_get_asn1(&data, &contents, 0x30) || in TestGetASN1()
138 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1()
144 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1()
150 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1()
156 if (CBS_get_asn1(&data, &contents, 0x30)) { in TestGetASN1()
162 if (CBS_get_asn1(&data, &contents, 0x31)) { in TestGetASN1()
/external/boringssl/src/crypto/bn/
Dbn_asn1.c23 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) || in BN_cbs2unsigned()
47 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) || in BN_cbs2unsigned_buggy()
/external/boringssl/src/ssl/
Dssl_asn1.c516 if (!CBS_get_asn1(cbs, &session, CBS_ASN1_SEQUENCE) || in SSL_SESSION_parse()
533 if (!CBS_get_asn1(&session, &cipher, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse()
546 if (!CBS_get_asn1(&session, &session_id, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse()
548 !CBS_get_asn1(&session, &master_key, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse()
601 if (!CBS_get_asn1(&session, &child, kPeerSHA256Tag) || in SSL_SESSION_parse()
602 !CBS_get_asn1(&child, &peer_sha256, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_parse()
/external/boringssl/src/crypto/rsa/
Drsa_asn1.c103 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()
239 if (!CBS_get_asn1(&child, &other_prime_infos, CBS_ASN1_SEQUENCE) || in RSA_parse_private_key()
/external/boringssl/src/crypto/ecdsa/
Decdsa_asn1.c117 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in ECDSA_SIG_parse()
/external/boringssl/src/include/openssl/
Dbytestring.h144 OPENSSL_EXPORT int CBS_get_asn1(CBS *cbs, CBS *out, unsigned tag_value);
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp10784 if (!CBS_get_asn1(cert_id, &hash_algorithm, CBS_ASN1_SEQUENCE) ||
10785 !CBS_get_asn1(&hash_algorithm, &hash, CBS_ASN1_OBJECT)) {
10791 if (!CBS_get_asn1(cert_id, &issuer_name_hash, CBS_ASN1_OCTETSTRING)) {
10797 if (!CBS_get_asn1(cert_id, &issuer_key_hash, CBS_ASN1_OCTETSTRING)) {
10803 if (!CBS_get_asn1(cert_id, &serial, CBS_ASN1_INTEGER)) {
10854 if (!CBS_get_asn1(responses, &single_response, CBS_ASN1_SEQUENCE)) {
10864 if (!CBS_get_asn1(&single_response, &cert_id, CBS_ASN1_SEQUENCE)) {
10887 if (!CBS_get_asn1(ocsp_response, nullptr /* responseStatus */, CBS_ASN1_ENUMERATED) ||
10888 !CBS_get_asn1(ocsp_response, &tagged_response_bytes,
10890 !CBS_get_asn1(&tagged_response_bytes, &response_bytes, CBS_ASN1_SEQUENCE)) {
[all …]