/external/boringssl/src/crypto/evp/ |
D | p_rsa_asn1.c | 72 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in rsa_pub_encode() 73 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in rsa_pub_encode() 74 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in rsa_pub_encode() 76 !CBB_add_asn1(&algorithm, &null, CBS_ASN1_NULL) || in rsa_pub_encode() 77 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in rsa_pub_encode() 118 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in rsa_priv_encode() 120 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in rsa_priv_encode() 121 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in rsa_priv_encode() 123 !CBB_add_asn1(&algorithm, &null, CBS_ASN1_NULL) || in rsa_priv_encode() 124 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in rsa_priv_encode()
|
D | p_ed25519_asn1.c | 133 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in ed25519_pub_encode() 134 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in ed25519_pub_encode() 135 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in ed25519_pub_encode() 137 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in ed25519_pub_encode() 179 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in ed25519_priv_encode() 181 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in ed25519_priv_encode() 182 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in ed25519_priv_encode() 184 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in ed25519_priv_encode() 185 !CBB_add_asn1(&private_key, &inner, CBS_ASN1_OCTETSTRING) || in ed25519_priv_encode()
|
D | p_x25519_asn1.c | 131 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in x25519_pub_encode() 132 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in x25519_pub_encode() 133 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in x25519_pub_encode() 135 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in x25519_pub_encode() 177 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in x25519_priv_encode() 179 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in x25519_priv_encode() 180 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in x25519_priv_encode() 182 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in x25519_priv_encode() 183 !CBB_add_asn1(&private_key, &inner, CBS_ASN1_OCTETSTRING) || in x25519_priv_encode()
|
D | p_ec_asn1.c | 75 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in eckey_pub_encode() 76 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in eckey_pub_encode() 77 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in eckey_pub_encode() 80 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in eckey_pub_encode() 175 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in eckey_priv_encode() 177 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in eckey_priv_encode() 178 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in eckey_priv_encode() 181 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in eckey_priv_encode()
|
D | p_dsa_asn1.c | 110 if (!CBB_add_asn1(out, &spki, CBS_ASN1_SEQUENCE) || in dsa_pub_encode() 111 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || in dsa_pub_encode() 112 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in dsa_pub_encode() 116 !CBB_add_asn1(&spki, &key_bitstring, CBS_ASN1_BITSTRING) || in dsa_pub_encode() 178 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in dsa_priv_encode() 180 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in dsa_priv_encode() 181 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in dsa_priv_encode() 184 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in dsa_priv_encode()
|
/external/boringssl/src/crypto/pkcs7/ |
D | pkcs7.c | 140 if (!CBB_add_asn1(out, &outer_seq, CBS_ASN1_SEQUENCE) || in pkcs7_bundle() 141 !CBB_add_asn1(&outer_seq, &oid, CBS_ASN1_OBJECT) || in pkcs7_bundle() 143 !CBB_add_asn1(&outer_seq, &wrapped_seq, in pkcs7_bundle() 146 !CBB_add_asn1(&wrapped_seq, &seq, CBS_ASN1_SEQUENCE) || in pkcs7_bundle() 147 !CBB_add_asn1(&seq, &version_bytes, CBS_ASN1_INTEGER) || in pkcs7_bundle() 149 !CBB_add_asn1(&seq, &digest_algos_set, CBS_ASN1_SET) || in pkcs7_bundle() 150 !CBB_add_asn1(&seq, &content_info, CBS_ASN1_SEQUENCE) || in pkcs7_bundle() 151 !CBB_add_asn1(&content_info, &oid, CBS_ASN1_OBJECT) || in pkcs7_bundle() 154 !CBB_add_asn1(&seq, &signer_infos, CBS_ASN1_SET)) { in pkcs7_bundle()
|
D | pkcs7_x509.c | 178 if (!CBB_add_asn1(out, &certificates, in pkcs7_bundle_certificates_cb() 208 if (!CBB_add_asn1(out, &crl_data, in pkcs7_bundle_crls_cb()
|
/external/boringssl/src/crypto/pkcs8/ |
D | pkcs8_x509.c | 977 if (!CBB_add_asn1(bag, &attrs, CBS_ASN1_SET)) { in add_bag_attributes() 982 if (!CBB_add_asn1(&attrs, &attr, CBS_ASN1_SEQUENCE) || in add_bag_attributes() 983 !CBB_add_asn1(&attr, &oid, CBS_ASN1_OBJECT) || in add_bag_attributes() 985 !CBB_add_asn1(&attr, &values, CBS_ASN1_SET) || in add_bag_attributes() 986 !CBB_add_asn1(&values, &value, CBS_ASN1_BMPSTRING)) { in add_bag_attributes() 1003 if (!CBB_add_asn1(&attrs, &attr, CBS_ASN1_SEQUENCE) || in add_bag_attributes() 1004 !CBB_add_asn1(&attr, &oid, CBS_ASN1_OBJECT) || in add_bag_attributes() 1006 !CBB_add_asn1(&attr, &values, CBS_ASN1_SET) || in add_bag_attributes() 1007 !CBB_add_asn1(&values, &value, CBS_ASN1_OCTETSTRING) || in add_bag_attributes() 1020 !CBB_add_asn1(cbb, &bag, CBS_ASN1_SEQUENCE) || in add_cert_bag() [all …]
|
D | p5_pbev2.c | 135 return CBB_add_asn1(out, &child, CBS_ASN1_OBJECT) && in add_cipher_oid() 183 if (!CBB_add_asn1(out, &algorithm, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_encrypt_init() 184 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in PKCS5_pbe2_encrypt_init() 186 !CBB_add_asn1(&algorithm, ¶m, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_encrypt_init() 187 !CBB_add_asn1(¶m, &kdf, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_encrypt_init() 188 !CBB_add_asn1(&kdf, &kdf_oid, CBS_ASN1_OBJECT) || in PKCS5_pbe2_encrypt_init() 190 !CBB_add_asn1(&kdf, &kdf_param, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_encrypt_init() 191 !CBB_add_asn1(&kdf_param, &salt_cbb, CBS_ASN1_OCTETSTRING) || in PKCS5_pbe2_encrypt_init() 198 !CBB_add_asn1(¶m, &cipher_cbb, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_encrypt_init() 202 !CBB_add_asn1(&cipher_cbb, &iv_cbb, CBS_ASN1_OCTETSTRING) || in PKCS5_pbe2_encrypt_init()
|
D | pkcs8.c | 345 if (!CBB_add_asn1(out, &algorithm, CBS_ASN1_SEQUENCE) || in pkcs12_pbe_encrypt_init() 346 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || in pkcs12_pbe_encrypt_init() 348 !CBB_add_asn1(&algorithm, ¶m, CBS_ASN1_SEQUENCE) || in pkcs12_pbe_encrypt_init() 349 !CBB_add_asn1(¶m, &salt_cbb, CBS_ASN1_OCTETSTRING) || in pkcs12_pbe_encrypt_init() 485 if (!CBB_add_asn1(out, &epki, CBS_ASN1_SEQUENCE)) { in PKCS8_marshal_encrypted_private_key() 514 if (!CBB_add_asn1(&epki, &ciphertext, CBS_ASN1_OCTETSTRING) || in PKCS8_marshal_encrypted_private_key()
|
/external/boringssl/src/ssl/ |
D | ssl_asn1.cc | 200 if (!CBB_add_asn1(cbb, &session, CBS_ASN1_SEQUENCE) || in SSL_SESSION_to_bytes_full() 203 !CBB_add_asn1(&session, &child, CBS_ASN1_OCTETSTRING) || in SSL_SESSION_to_bytes_full() 210 !CBB_add_asn1(&session, &child, kTimeTag) || in SSL_SESSION_to_bytes_full() 212 !CBB_add_asn1(&session, &child, kTimeoutTag) || in SSL_SESSION_to_bytes_full() 222 if (!CBB_add_asn1(&session, &child, kPeerTag) || in SSL_SESSION_to_bytes_full() 232 if (!CBB_add_asn1(&session, &child, kSessionIDContextTag) || in SSL_SESSION_to_bytes_full() 239 if (!CBB_add_asn1(&session, &child, kVerifyResultTag) || in SSL_SESSION_to_bytes_full() 247 if (!CBB_add_asn1(&session, &child, kPSKIdentityTag) || in SSL_SESSION_to_bytes_full() 257 if (!CBB_add_asn1(&session, &child, kTicketLifetimeHintTag) || in SSL_SESSION_to_bytes_full() 265 if (!CBB_add_asn1(&session, &child, kTicketTag) || in SSL_SESSION_to_bytes_full() [all …]
|
D | handoff.cc | 31 if (!CBB_add_asn1(out, &ciphers, CBS_ASN1_OCTETSTRING)) { in serialize_features() 41 if (!CBB_add_asn1(out, &curves, CBS_ASN1_OCTETSTRING)) { in serialize_features() 64 if (!CBB_add_asn1(out, &seq, CBS_ASN1_SEQUENCE) || in SSL_serialize_handoff() 277 if (!CBB_add_asn1(out, &seq, CBS_ASN1_SEQUENCE) || in SSL_serialize_handback() 310 !CBB_add_asn1(&seq, &key_share, CBS_ASN1_SEQUENCE)) { in SSL_serialize_handback()
|
/external/fsverity-utils/ |
D | cmd_sign.c | 163 if (!CBB_add_asn1(&out, &outer_seq, CBS_ASN1_SEQUENCE) || in sign_pkcs7() 165 !CBB_add_asn1(&outer_seq, &wrapped_seq, CBS_ASN1_CONTEXT_SPECIFIC | in sign_pkcs7() 168 !CBB_add_asn1(&wrapped_seq, &seq, CBS_ASN1_SEQUENCE) || in sign_pkcs7() 170 !CBB_add_asn1(&seq, &digest_algos_set, CBS_ASN1_SET) || in sign_pkcs7() 171 !CBB_add_asn1(&digest_algos_set, &digest_algo, CBS_ASN1_SEQUENCE) || in sign_pkcs7() 173 !CBB_add_asn1(&digest_algo, &null, CBS_ASN1_NULL) || in sign_pkcs7() 174 !CBB_add_asn1(&seq, &content_info, CBS_ASN1_SEQUENCE) || in sign_pkcs7() 176 !CBB_add_asn1(&seq, &signer_infos, CBS_ASN1_SET) || in sign_pkcs7() 177 !CBB_add_asn1(&signer_infos, &signer_info, CBS_ASN1_SEQUENCE) || in sign_pkcs7() 179 !CBB_add_asn1(&signer_info, &issuer_and_serial, in sign_pkcs7() [all …]
|
/external/boringssl/src/crypto/digest_extra/ |
D | digest_extra.c | 196 if (!CBB_add_asn1(cbb, &algorithm, CBS_ASN1_SEQUENCE) || in EVP_marshal_digest_algorithm() 197 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT)) { in EVP_marshal_digest_algorithm() 220 if (!CBB_add_asn1(&algorithm, &null, CBS_ASN1_NULL) || in EVP_marshal_digest_algorithm()
|
/external/boringssl/src/crypto/dsa/ |
D | dsa_asn1.c | 104 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_SIG_marshal() 135 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_marshal_public_key() 167 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_marshal_parameters() 215 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DSA_marshal_private_key()
|
/external/boringssl/src/crypto/ec_extra/ |
D | ec_asn1.c | 200 if (!CBB_add_asn1(cbb, &ec_private_key, CBS_ASN1_SEQUENCE) || in EC_KEY_marshal_private_key() 202 !CBB_add_asn1(&ec_private_key, &private_key, CBS_ASN1_OCTETSTRING) || in EC_KEY_marshal_private_key() 212 if (!CBB_add_asn1(&ec_private_key, &child, kParametersTag) || in EC_KEY_marshal_private_key() 223 if (!CBB_add_asn1(&ec_private_key, &child, kPublicKeyTag) || in EC_KEY_marshal_private_key() 224 !CBB_add_asn1(&child, &public_key, CBS_ASN1_BITSTRING) || in EC_KEY_marshal_private_key() 373 return CBB_add_asn1(cbb, &child, CBS_ASN1_OBJECT) && in EC_KEY_marshal_curve_name()
|
/external/boringssl/src/crypto/bytestring/ |
D | bytestring_test.cc | 476 EXPECT_FALSE(CBB_add_asn1(&child, &contents, 1)); in TEST() 504 ASSERT_TRUE(CBB_add_asn1(cbb.get(), &contents, CBS_ASN1_SEQUENCE)); in TEST() 507 CBB_add_asn1(cbb.get(), &contents, in TEST() 511 CBB_add_asn1(cbb.get(), &contents, in TEST() 515 CBB_add_asn1(cbb.get(), &contents, in TEST() 519 CBB_add_asn1(cbb.get(), &contents, in TEST() 529 ASSERT_TRUE(CBB_add_asn1(cbb.get(), &contents, CBS_ASN1_SEQUENCE)); in TEST() 539 ASSERT_TRUE(CBB_add_asn1(cbb.get(), &contents, CBS_ASN1_SEQUENCE)); in TEST() 549 ASSERT_TRUE(CBB_add_asn1(cbb.get(), &contents, CBS_ASN1_SEQUENCE)); in TEST() 550 ASSERT_TRUE(CBB_add_asn1(&contents, &inner_contents, CBS_ASN1_SEQUENCE)); in TEST() [all …]
|
D | cbb.c | 363 int CBB_add_asn1(CBB *cbb, CBB *out_contents, unsigned tag) { in CBB_add_asn1() function 489 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_INTEGER)) { in CBB_add_asn1_uint64() 522 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_OCTETSTRING) || in CBB_add_asn1_octet_string() 533 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_BOOLEAN) || in CBB_add_asn1_bool()
|
D | ber.c | 149 if (!CBB_add_asn1(out, &out_contents_storage, out_tag)) { in cbs_convert_ber()
|
/external/boringssl/src/crypto/asn1/ |
D | asn1_test.cc | 117 !CBB_add_asn1(cbb.get(), &cbbs[0], CBS_ASN1_SEQUENCE)) { 121 if (!CBB_add_asn1(&cbbs[i - 1], &cbbs[i], CBS_ASN1_SEQUENCE)) {
|
/external/boringssl/src/crypto/bn_extra/ |
D | bn_asn1.c | 53 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_INTEGER) || in BN_marshal_asn1()
|
/external/boringssl/src/crypto/rsa_extra/ |
D | rsa_asn1.c | 129 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in RSA_marshal_public_key() 218 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in RSA_marshal_private_key()
|
/external/boringssl/src/crypto/dh/ |
D | dh_asn1.c | 122 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in DH_marshal_parameters()
|
/external/boringssl/src/ssl/test/ |
D | test_state.cc | 93 !CBB_add_asn1(&out, &ctx_sessions, CBS_ASN1_SEQUENCE)) { in SerializeContextState()
|
/external/boringssl/src/crypto/ecdsa_extra/ |
D | ecdsa_asn1.c | 183 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_SEQUENCE) || in ECDSA_SIG_marshal()
|