/external/boringssl/src/ssl/test/ |
D | settings_writer.cc | 51 !CBB_add_bytes(&child, data, len) || !CBB_flush(cbb_.get())) { in Init() 95 !CBB_add_bytes(&child, handoff.data(), handoff.size()) || in WriteHandoff() 110 !CBB_add_bytes(&child, handback.data(), handback.size()) || in WriteHandback()
|
/external/rust/crates/quiche/deps/boringssl/src/ssl/test/ |
D | settings_writer.cc | 51 !CBB_add_bytes(&child, data, len) || !CBB_flush(cbb_.get())) { in Init() 95 !CBB_add_bytes(&child, handoff.data(), handoff.size()) || in WriteHandoff() 110 !CBB_add_bytes(&child, handback.data(), handback.size()) || in WriteHandback()
|
/external/boringssl/src/crypto/pkcs8/ |
D | p5_pbev2.c | 136 CBB_add_bytes(&child, kCipherOIDs[i].oid, in add_cipher_oid() 185 !CBB_add_bytes(&oid, kPBES2, sizeof(kPBES2)) || in PKCS5_pbe2_encrypt_init() 189 !CBB_add_bytes(&kdf_oid, kPBKDF2, sizeof(kPBKDF2)) || in PKCS5_pbe2_encrypt_init() 192 !CBB_add_bytes(&salt_cbb, salt, salt_len) || in PKCS5_pbe2_encrypt_init() 203 !CBB_add_bytes(&iv_cbb, iv, EVP_CIPHER_iv_length(cipher)) || in PKCS5_pbe2_encrypt_init()
|
D | pkcs8_x509.c | 1015 !CBB_add_bytes(&oid, kFriendlyName, sizeof(kFriendlyName)) || in add_bag_attributes() 1036 !CBB_add_bytes(&oid, kLocalKeyID, sizeof(kLocalKeyID)) || in add_bag_attributes() 1039 !CBB_add_bytes(&value, key_id, key_id_len)) { in add_bag_attributes() 1053 !CBB_add_bytes(&bag_oid, kCertBag, sizeof(kCertBag)) || in add_cert_bag() 1059 !CBB_add_bytes(&cert_type, kX509Certificate, sizeof(kX509Certificate)) || in add_cert_bag() 1120 !CBB_add_bytes(&type, kPKCS7EncryptedData, sizeof(kPKCS7EncryptedData)) || in add_encrypted_data() 1130 !CBB_add_bytes(&inner_type, kPKCS7Data, sizeof(kPKCS7Data)) || in add_encrypted_data() 1225 !CBB_add_bytes(&auth_safe_oid, kPKCS7Data, sizeof(kPKCS7Data)) || in PKCS12_create() 1263 !CBB_add_bytes(&oid, kPKCS7Data, sizeof(kPKCS7Data)) || in PKCS12_create() 1271 !CBB_add_bytes(&bag_oid, kPKCS8ShroudedKeyBag, in PKCS12_create() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/pkcs8/ |
D | p5_pbev2.c | 136 CBB_add_bytes(&child, kCipherOIDs[i].oid, in add_cipher_oid() 185 !CBB_add_bytes(&oid, kPBES2, sizeof(kPBES2)) || in PKCS5_pbe2_encrypt_init() 189 !CBB_add_bytes(&kdf_oid, kPBKDF2, sizeof(kPBKDF2)) || in PKCS5_pbe2_encrypt_init() 192 !CBB_add_bytes(&salt_cbb, salt, salt_len) || in PKCS5_pbe2_encrypt_init() 203 !CBB_add_bytes(&iv_cbb, iv, EVP_CIPHER_iv_length(cipher)) || in PKCS5_pbe2_encrypt_init()
|
D | pkcs8_x509.c | 984 !CBB_add_bytes(&oid, kFriendlyName, sizeof(kFriendlyName)) || in add_bag_attributes() 1005 !CBB_add_bytes(&oid, kLocalKeyID, sizeof(kLocalKeyID)) || in add_bag_attributes() 1008 !CBB_add_bytes(&value, key_id, key_id_len)) { in add_bag_attributes() 1022 !CBB_add_bytes(&bag_oid, kCertBag, sizeof(kCertBag)) || in add_cert_bag() 1028 !CBB_add_bytes(&cert_type, kX509Certificate, sizeof(kX509Certificate)) || in add_cert_bag() 1089 !CBB_add_bytes(&type, kPKCS7EncryptedData, sizeof(kPKCS7EncryptedData)) || in add_encrypted_data() 1099 !CBB_add_bytes(&inner_type, kPKCS7Data, sizeof(kPKCS7Data)) || in add_encrypted_data() 1194 !CBB_add_bytes(&auth_safe_oid, kPKCS7Data, sizeof(kPKCS7Data)) || in PKCS12_create() 1232 !CBB_add_bytes(&oid, kPKCS7Data, sizeof(kPKCS7Data)) || in PKCS12_create() 1240 !CBB_add_bytes(&bag_oid, kPKCS8ShroudedKeyBag, in PKCS12_create() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/ |
D | p_ed25519_asn1.c | 136 !CBB_add_bytes(&oid, ed25519_asn1_meth.oid, ed25519_asn1_meth.oid_len) || in ed25519_pub_encode() 139 !CBB_add_bytes(&key_bitstring, key->key.pub.value, 32) || in ed25519_pub_encode() 183 !CBB_add_bytes(&oid, ed25519_asn1_meth.oid, ed25519_asn1_meth.oid_len) || in ed25519_priv_encode() 188 !CBB_add_bytes(&inner, key->key.priv, 32) || in ed25519_priv_encode()
|
D | p_x25519_asn1.c | 133 !CBB_add_bytes(&oid, x25519_asn1_meth.oid, x25519_asn1_meth.oid_len) || in x25519_pub_encode() 136 !CBB_add_bytes(&key_bitstring, key->pub, 32) || in x25519_pub_encode() 180 !CBB_add_bytes(&oid, x25519_asn1_meth.oid, x25519_asn1_meth.oid_len) || in x25519_priv_encode() 185 !CBB_add_bytes(&inner, key->priv, 32) || in x25519_priv_encode()
|
D | p_rsa_asn1.c | 75 !CBB_add_bytes(&oid, rsa_asn1_meth.oid, rsa_asn1_meth.oid_len) || in rsa_pub_encode() 122 !CBB_add_bytes(&oid, rsa_asn1_meth.oid, rsa_asn1_meth.oid_len) || in rsa_priv_encode()
|
/external/boringssl/src/crypto/evp/ |
D | p_ed25519_asn1.c | 136 !CBB_add_bytes(&oid, ed25519_asn1_meth.oid, ed25519_asn1_meth.oid_len) || in ed25519_pub_encode() 139 !CBB_add_bytes(&key_bitstring, key->key.pub.value, 32) || in ed25519_pub_encode() 183 !CBB_add_bytes(&oid, ed25519_asn1_meth.oid, ed25519_asn1_meth.oid_len) || in ed25519_priv_encode() 188 !CBB_add_bytes(&inner, key->key.priv, 32) || in ed25519_priv_encode()
|
D | p_x25519_asn1.c | 133 !CBB_add_bytes(&oid, x25519_asn1_meth.oid, x25519_asn1_meth.oid_len) || in x25519_pub_encode() 136 !CBB_add_bytes(&key_bitstring, key->pub, 32) || in x25519_pub_encode() 180 !CBB_add_bytes(&oid, x25519_asn1_meth.oid, x25519_asn1_meth.oid_len) || in x25519_priv_encode() 185 !CBB_add_bytes(&inner, key->priv, 32) || in x25519_priv_encode()
|
D | p_rsa_asn1.c | 75 !CBB_add_bytes(&oid, rsa_asn1_meth.oid, rsa_asn1_meth.oid_len) || in rsa_pub_encode() 122 !CBB_add_bytes(&oid, rsa_asn1_meth.oid, rsa_asn1_meth.oid_len) || in rsa_priv_encode()
|
/external/boringssl/src/crypto/trust_token/ |
D | trust_token.c | 303 !CBB_add_bytes(&token_inner, token->data, token->len) || in TRUST_TOKEN_CLIENT_begin_redemption() 305 !CBB_add_bytes(&inner, data, data_len) || in TRUST_TOKEN_CLIENT_begin_redemption() 617 CBB_add_bytes(cbb, data, len); in add_cbor_bytes() 623 CBB_add_bytes(cbb, (const uint8_t *)data, len); in add_cbor_text() 752 !CBB_add_bytes(&srr, CBS_data(&client_data), CBS_len(&client_data)) || in TRUST_TOKEN_ISSUER_redeem() 787 !CBB_add_bytes(&response, (const uint8_t *)kSRRHeader, in TRUST_TOKEN_ISSUER_redeem() 789 !CBB_add_bytes(&response, srr_b64_buf, in TRUST_TOKEN_ISSUER_redeem() 791 !CBB_add_bytes(&response, (const uint8_t *)kSRRSplit, in TRUST_TOKEN_ISSUER_redeem() 793 !CBB_add_bytes(&response, sig_b64_buf, in TRUST_TOKEN_ISSUER_redeem() 795 !CBB_add_bytes(&response, (const uint8_t *)kSRREnd, strlen(kSRREnd))) { in TRUST_TOKEN_ISSUER_redeem() [all …]
|
/external/boringssl/src/ssl/ |
D | tls13_both.cc | 88 if (!CBB_add_bytes(cbb.get(), in tls13_get_cert_verify_signature_input() 98 !CBB_add_bytes(cbb.get(), context_hash, context_hash_len) || in tls13_get_cert_verify_signature_input() 446 !CBB_add_bytes(&leaf, CRYPTO_BUFFER_data(leaf_buf), in tls13_add_certificate() 457 !CBB_add_bytes( in tls13_add_certificate() 473 !CBB_add_bytes(&ocsp_response, in tls13_add_certificate() 487 !CBB_add_bytes(&child, CRYPTO_BUFFER_data(raw), in tls13_add_certificate() 500 !CBB_add_bytes(&child, CRYPTO_BUFFER_data(cert_buf), in tls13_add_certificate() 611 !CBB_add_bytes(&body, verify_data, verify_data_len) || in tls13_add_finished()
|
D | ssl_key_share.cc | 168 return !!CBB_add_bytes(out, public_key, sizeof(public_key)); in Offer() 229 if (!CBB_add_bytes(out, x25519_public_key, sizeof(x25519_public_key)) || in Offer() 230 !CBB_add_bytes(out, hrss_public_key_bytes, in Offer() 263 if (!CBB_add_bytes(out_public_key, x25519_public_key, in Accept() 265 !CBB_add_bytes(out_public_key, ciphertext, sizeof(ciphertext))) { in Accept()
|
/external/rust/crates/quiche/deps/boringssl/src/ssl/ |
D | tls13_both.cc | 88 if (!CBB_add_bytes(cbb.get(), in tls13_get_cert_verify_signature_input() 98 !CBB_add_bytes(cbb.get(), context_hash, context_hash_len) || in tls13_get_cert_verify_signature_input() 447 !CBB_add_bytes(&leaf, CRYPTO_BUFFER_data(leaf_buf), in tls13_add_certificate() 458 !CBB_add_bytes( in tls13_add_certificate() 474 !CBB_add_bytes(&ocsp_response, in tls13_add_certificate() 488 !CBB_add_bytes(&child, CRYPTO_BUFFER_data(raw), in tls13_add_certificate() 501 !CBB_add_bytes(&child, CRYPTO_BUFFER_data(cert_buf), in tls13_add_certificate() 612 !CBB_add_bytes(&body, verify_data, verify_data_len) || in tls13_add_finished()
|
D | ssl_key_share.cc | 168 return !!CBB_add_bytes(out, public_key, sizeof(public_key)); in Offer() 229 if (!CBB_add_bytes(out, x25519_public_key, sizeof(x25519_public_key)) || in Offer() 230 !CBB_add_bytes(out, hrss_public_key_bytes, in Offer() 263 if (!CBB_add_bytes(out_public_key, x25519_public_key, in Accept() 265 !CBB_add_bytes(out_public_key, ciphertext, sizeof(ciphertext))) { in Accept()
|
/external/boringssl/src/crypto/hpke/ |
D | hpke.c | 46 return CBB_add_bytes(cbb, (const uint8_t *)label, strlen(label)); in add_label_string() 79 CBB_add_bytes(&labeled_ikm, suite_id, suite_id_len) && in hpke_labeled_extract() 81 CBB_add_bytes(&labeled_ikm, ikm, ikm_len) && in hpke_labeled_extract() 98 CBB_add_bytes(&labeled_info, suite_id, suite_id_len) && in hpke_labeled_expand() 100 CBB_add_bytes(&labeled_info, info, info_len) && in hpke_labeled_expand() 213 !CBB_add_bytes(&context_cbb, psk_id_hash, psk_id_hash_len) || in hpke_key_schedule() 214 !CBB_add_bytes(&context_cbb, info_hash, info_hash_len) || in hpke_key_schedule()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/bytestring/ |
D | bytestring_test.cc | 343 ASSERT_TRUE(CBB_add_bytes(cbb.get(), (const uint8_t *)"\x13\x14", 2)); in TEST() 490 EXPECT_FALSE(CBB_add_bytes(&child, (const uint8_t*) "a", 1)); in TEST() 518 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x01\x02\x03", 3)); in TEST() 522 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x04\x05\x06", 3)); in TEST() 526 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x07\x08\x09", 3)); in TEST() 530 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x0a\x0b\x0c", 3)); in TEST() 534 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x0d\x0e\x0f", 3)); in TEST() 543 ASSERT_TRUE(CBB_add_bytes(&contents, test_data.data(), 130)); in TEST() 553 ASSERT_TRUE(CBB_add_bytes(&contents, test_data.data(), 1000)); in TEST() 564 ASSERT_TRUE(CBB_add_bytes(&inner_contents, test_data.data(), 100000)); in TEST() [all …]
|
D | ber.c | 178 if (!CBB_add_bytes(out_contents, CBS_data(&contents), in cbs_convert_ber() 247 !CBB_add_bytes(&result, CBS_data(&chunk), CBS_len(&chunk))) { in CBS_get_asn1_implicit_string()
|
/external/boringssl/src/crypto/bytestring/ |
D | bytestring_test.cc | 343 ASSERT_TRUE(CBB_add_bytes(cbb.get(), (const uint8_t *)"\x13\x14", 2)); in TEST() 490 EXPECT_FALSE(CBB_add_bytes(&child, (const uint8_t*) "a", 1)); in TEST() 518 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x01\x02\x03", 3)); in TEST() 522 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x04\x05\x06", 3)); in TEST() 526 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x07\x08\x09", 3)); in TEST() 530 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x0a\x0b\x0c", 3)); in TEST() 534 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x0d\x0e\x0f", 3)); in TEST() 543 ASSERT_TRUE(CBB_add_bytes(&contents, test_data.data(), 130)); in TEST() 553 ASSERT_TRUE(CBB_add_bytes(&contents, test_data.data(), 1000)); in TEST() 564 ASSERT_TRUE(CBB_add_bytes(&inner_contents, test_data.data(), 100000)); in TEST() [all …]
|
D | ber.c | 177 if (!CBB_add_bytes(out_contents, CBS_data(&contents), in cbs_convert_ber() 246 !CBB_add_bytes(&result, CBS_data(&chunk), CBS_len(&chunk))) { in CBS_get_asn1_implicit_string()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/trust_token/ |
D | trust_token_test.cc | 601 ASSERT_TRUE(CBB_add_bytes(bad_response.get(), s, PMBTOKEN_NONCE_SIZE)); in TEST_P() 605 CBB_add_bytes(bad_response.get(), CBS_data(&tmp), CBS_len(&tmp))); in TEST_P() 609 CBB_add_bytes(bad_response.get(), CBS_data(&tmp), CBS_len(&tmp))); in TEST_P() 614 ASSERT_TRUE(CBB_add_bytes(&dleq, CBS_data(&tmp), CBS_len(&tmp) - 2)); in TEST_P() 624 ASSERT_TRUE(CBB_add_bytes(&dleq, CBS_data(&tmp), CBS_len(&tmp) - 2)); in TEST_P() 669 ASSERT_TRUE(CBB_add_bytes(bad_response.get(), s, PMBTOKEN_NONCE_SIZE)); in TEST_P() 673 CBB_add_bytes(bad_response.get(), CBS_data(&tmp), CBS_len(&tmp))); in TEST_P() 677 CBB_add_bytes(bad_response.get(), CBS_data(&tmp), CBS_len(&tmp))); in TEST_P() 682 ASSERT_TRUE(CBB_add_bytes(&dleq, CBS_data(&tmp), CBS_len(&tmp))); in TEST_P() 693 ASSERT_TRUE(CBB_add_bytes(&dleq, CBS_data(&tmp), CBS_len(&tmp))); in TEST_P()
|
/external/boringssl/src/crypto/pkcs7/ |
D | pkcs7.c | 142 !CBB_add_bytes(&oid, kPKCS7SignedData, sizeof(kPKCS7SignedData)) || in pkcs7_bundle() 152 !CBB_add_bytes(&oid, kPKCS7Data, sizeof(kPKCS7Data)) || in pkcs7_bundle()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/pkcs7/ |
D | pkcs7.c | 142 !CBB_add_bytes(&oid, kPKCS7SignedData, sizeof(kPKCS7SignedData)) || in pkcs7_bundle() 152 !CBB_add_bytes(&oid, kPKCS7Data, sizeof(kPKCS7Data)) || in pkcs7_bundle()
|