Home
last modified time | relevance | path

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

12

/external/boringssl/src/crypto/pkcs8/
Dp5_pbev2.c212 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 …]
Dpkcs8_x509.c271 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()
328 if (!CBS_get_asn1(attrs, &attr, CBS_ASN1_SEQUENCE) || in parse_bag_attributes()
329 !CBS_get_asn1(&attr, &oid, CBS_ASN1_OBJECT) || in parse_bag_attributes()
330 !CBS_get_asn1(&attr, &values, CBS_ASN1_SET) || in parse_bag_attributes()
339 !CBS_get_asn1(&values, &value, CBS_ASN1_BMPSTRING) || in parse_bag_attributes()
381 if (!CBS_get_asn1(safe_bag, &bag_id, CBS_ASN1_OBJECT) || in PKCS12_handle_safe_bag()
382 !CBS_get_asn1(safe_bag, &wrapped_value, in PKCS12_handle_safe_bag()
389 } else if (!CBS_get_asn1(safe_bag, &bag_attrs, CBS_ASN1_SET) || in PKCS12_handle_safe_bag()
422 if (!CBS_get_asn1(&wrapped_value, &cert_bag, CBS_ASN1_SEQUENCE) || in PKCS12_handle_safe_bag()
[all …]
Dpkcs8.c262 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/
Dhandoff.cc94 if (!CBS_get_asn1(in, &ciphers, CBS_ASN1_OCTETSTRING)) { in apply_remote_features()
137 if (!CBS_get_asn1(in, &curves, CBS_ASN1_OCTETSTRING)) { in apply_remote_features()
187 if (!CBS_get_asn1(&handoff_cbs, &seq, CBS_ASN1_SEQUENCE) || in SSL_apply_handoff()
194 if (!CBS_get_asn1(&seq, &transcript, CBS_ASN1_OCTETSTRING) || in SSL_apply_handoff()
195 !CBS_get_asn1(&seq, &hs_buf, CBS_ASN1_OCTETSTRING) || in SSL_apply_handoff()
332 if (!CBS_get_asn1(&handback_cbs, &seq, CBS_ASN1_SEQUENCE) || in SSL_apply_handback()
339 if (!CBS_get_asn1(&seq, &read_seq, CBS_ASN1_OCTETSTRING) || in SSL_apply_handback()
341 !CBS_get_asn1(&seq, &write_seq, CBS_ASN1_OCTETSTRING) || in SSL_apply_handback()
343 !CBS_get_asn1(&seq, &server_rand, CBS_ASN1_OCTETSTRING) || in SSL_apply_handback()
347 !CBS_get_asn1(&seq, &client_rand, CBS_ASN1_OCTETSTRING) || in SSL_apply_handback()
[all …]
Dssl_cert.cc460 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 …]
Dssl_asn1.cc445 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()
Dssl_key_share.cc146 if (!CBS_get_asn1(in, &private_key, CBS_ASN1_OCTETSTRING)) { in Deserialize()
200 if (!CBS_get_asn1(in, &key, CBS_ASN1_OCTETSTRING) || in Deserialize()
/external/boringssl/src/crypto/ec_extra/
Dec_asn1.c78 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()
269 if (!CBS_get_asn1(in, &params, CBS_ASN1_SEQUENCE) || in parse_explicit_prime_curve()
272 !CBS_get_asn1(&params, &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(&params, &curve, CBS_ASN1_SEQUENCE) || in parse_explicit_prime_curve()
[all …]
/external/boringssl/src/crypto/pkcs7/
Dpkcs7.c51 !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/evp/
Devp_asn1.c80 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()
103 !CBS_get_asn1(&spki, &key, CBS_ASN1_BITSTRING) || in EVP_parse_public_key()
157 if (!CBS_get_asn1(cbs, &pkcs8, CBS_ASN1_SEQUENCE) || in EVP_parse_private_key()
160 !CBS_get_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in EVP_parse_private_key()
161 !CBS_get_asn1(&pkcs8, &key, CBS_ASN1_OCTETSTRING)) { in EVP_parse_private_key()
285 if (!CBS_get_asn1(&cbs, &sequence, CBS_ASN1_SEQUENCE)) { in num_elements()
Dp_rsa_asn1.c93 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()
Dp_ed25519_asn1.c105 !CBS_get_asn1(key, &inner, CBS_ASN1_OCTETSTRING) || in ed25519_priv_decode()
/external/nos/host/android/hals/keymaster/
Dimport_wrapped_key.cpp74 if (!CBS_get_asn1(&child, out, CBS_ASN1_SET) || in CBS_get_optional_asn1_set()
95 if (!CBS_get_asn1(&child, out, CBS_ASN1_NULL) || in CBS_get_optional_asn1_null()
360 if (!CBS_get_asn1(&cbs, &child, CBS_ASN1_SEQUENCE) || in import_wrapped_key_request()
369 if (!CBS_get_asn1(&child, &encryptedTransportKey, CBS_ASN1_OCTETSTRING) || in import_wrapped_key_request()
370 !CBS_get_asn1(&child, &initializationVector, CBS_ASN1_OCTETSTRING)) { in import_wrapped_key_request()
394 if (!CBS_get_asn1(&aad, &keyDescription, CBS_ASN1_SEQUENCE)) { in import_wrapped_key_request()
406 if (!CBS_get_asn1(&keyDescription, &authorizationList, CBS_ASN1_SEQUENCE) || in import_wrapped_key_request()
470 if (!CBS_get_asn1(&child, &secureKey, CBS_ASN1_OCTETSTRING)) { in import_wrapped_key_request()
484 if (!CBS_get_asn1(&child, &tag, CBS_ASN1_OCTETSTRING)) { in import_wrapped_key_request()
/external/fsverity-utils/
Dsign.c224 if (!CBS_get_asn1(&in, &content_info, CBS_ASN1_SEQUENCE) || in compare_fsverity_digest_pkcs7()
225 !CBS_get_asn1(&content_info, &content_type, CBS_ASN1_OBJECT) || in compare_fsverity_digest_pkcs7()
227 !CBS_get_asn1( in compare_fsverity_digest_pkcs7()
230 !CBS_get_asn1(&wrapped_signed_data, &signed_data, in compare_fsverity_digest_pkcs7()
234 !CBS_get_asn1(&signed_data, NULL /* digests */, CBS_ASN1_SET) || in compare_fsverity_digest_pkcs7()
235 !CBS_get_asn1(&signed_data, &content, CBS_ASN1_SEQUENCE) || in compare_fsverity_digest_pkcs7()
236 !CBS_get_asn1(&content, &content_type, CBS_ASN1_OBJECT) || in compare_fsverity_digest_pkcs7()
238 !CBS_get_asn1(&content, &wrapped_data, CBS_ASN1_CONTEXT_SPECIFIC | in compare_fsverity_digest_pkcs7()
240 !CBS_get_asn1(&wrapped_data, &data, CBS_ASN1_OCTETSTRING)) { in compare_fsverity_digest_pkcs7()
/external/boringssl/src/crypto/bytestring/
Dcbs.c386 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()
Dber.c231 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()
Dbytestring_test.cc129 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/
Ddigest_extra.c165 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, &param, CBS_ASN1_NULL) || in EVP_parse_digest_algorithm()
/external/boringssl/src/crypto/dsa/
Ddsa_asn1.c91 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/
Dbn_asn1.c23 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) || in BN_parse_asn1_unsigned()
/external/boringssl/src/crypto/rsa_extra/
Drsa_asn1.c96 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/
Ddh_asn1.c93 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in DH_parse_parameters()
/external/boringssl/src/ssl/test/
Dtest_state.cc116 !CBS_get_asn1(&in, &sessions, CBS_ASN1_SEQUENCE)) { in DeserializeContextState()
/external/boringssl/src/crypto/ecdsa_extra/
Decdsa_asn1.c158 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || in ECDSA_SIG_parse()
/external/boringssl/src/include/openssl/
Dbytestring.h215 OPENSSL_EXPORT int CBS_get_asn1(CBS *cbs, CBS *out, unsigned tag_value);

12