/external/boringssl/src/crypto/pkcs8/ |
D | p5_pbev2.c | 132 CBB_add_bytes(&child, kCipherOIDs[i].oid, in add_cipher_oid() 181 !CBB_add_bytes(&oid, kPBES2, sizeof(kPBES2)) || in PKCS5_pbe2_encrypt_init() 185 !CBB_add_bytes(&kdf_oid, kPBKDF2, sizeof(kPBKDF2)) || in PKCS5_pbe2_encrypt_init() 188 !CBB_add_bytes(&salt_cbb, salt, salt_len) || in PKCS5_pbe2_encrypt_init() 199 !CBB_add_bytes(&iv_cbb, iv, EVP_CIPHER_iv_length(cipher)) || in PKCS5_pbe2_encrypt_init()
|
D | pkcs8.c | 334 !CBB_add_bytes(&oid, suite->oid, suite->oid_len) || in pkcs12_pbe_encrypt_init() 337 !CBB_add_bytes(&salt_cbb, salt, salt_len) || in pkcs12_pbe_encrypt_init()
|
/external/boringssl/src/crypto/evp/ |
D | p_ed25519_asn1.c | 80 !CBB_add_bytes(&oid, ed25519_asn1_meth.oid, ed25519_asn1_meth.oid_len) || in ed25519_pub_encode() 83 !CBB_add_bytes(&key_bitstring, key->key.pub.value, 32) || in ed25519_pub_encode() 132 !CBB_add_bytes(&oid, ed25519_asn1_meth.oid, ed25519_asn1_meth.oid_len) || in ed25519_priv_encode() 137 !CBB_add_bytes(&inner, key->key.priv, 32) || in ed25519_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()
|
D | p_ec_asn1.c | 78 !CBB_add_bytes(&oid, ec_asn1_meth.oid, ec_asn1_meth.oid_len) || in eckey_pub_encode() 179 !CBB_add_bytes(&oid, ec_asn1_meth.oid, ec_asn1_meth.oid_len) || in eckey_priv_encode()
|
D | p_dsa_asn1.c | 113 !CBB_add_bytes(&oid, dsa_asn1_meth.oid, dsa_asn1_meth.oid_len) || in dsa_pub_encode() 182 !CBB_add_bytes(&oid, dsa_asn1_meth.oid, dsa_asn1_meth.oid_len) || in dsa_priv_encode()
|
/external/boringssl/src/crypto/bytestring/ |
D | bytestring_test.cc | 330 ASSERT_TRUE(CBB_add_bytes(cbb.get(), (const uint8_t *)"\x0b\x0c", 2)); in TEST() 474 EXPECT_FALSE(CBB_add_bytes(&child, (const uint8_t*) "a", 1)); in TEST() 502 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x01\x02\x03", 3)); in TEST() 506 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x04\x05\x06", 3)); in TEST() 510 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x07\x08\x09", 3)); in TEST() 514 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x0a\x0b\x0c", 3)); in TEST() 518 ASSERT_TRUE(CBB_add_bytes(&contents, (const uint8_t *)"\x0d\x0e\x0f", 3)); in TEST() 527 ASSERT_TRUE(CBB_add_bytes(&contents, test_data.data(), 130)); in TEST() 537 ASSERT_TRUE(CBB_add_bytes(&contents, test_data.data(), 1000)); in TEST() 548 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() 243 !CBB_add_bytes(&result, CBS_data(&chunk), CBS_len(&chunk))) { in CBS_get_asn1_implicit_string()
|
D | cbb.c | 392 int CBB_add_bytes(CBB *cbb, const uint8_t *data, size_t len) { in CBB_add_bytes() function 511 !CBB_add_bytes(&child, data, data_len) || in CBB_add_asn1_octet_string() 656 if (!CBB_add_bytes(cbb, CBS_data(&children[i]), CBS_len(&children[i]))) { in CBB_flush_asn1_set_of()
|
D | cbs.c | 570 return CBB_add_bytes(out, (const uint8_t *)buf, strlen(buf)); in add_decimal() 587 if (!CBB_add_bytes(&cbb, (const uint8_t *)"2.", 2) || in CBS_asn1_oid_to_text()
|
/external/boringssl/src/ssl/ |
D | tls13_both.cc | 86 if (!CBB_add_bytes(cbb.get(), in tls13_get_cert_verify_signature_input() 96 !CBB_add_bytes(cbb.get(), context_hash, context_hash_len) || in tls13_get_cert_verify_signature_input() 374 !CBB_add_bytes(&leaf, CRYPTO_BUFFER_data(leaf_buf), in tls13_add_certificate() 385 !CBB_add_bytes( in tls13_add_certificate() 402 !CBB_add_bytes(&ocsp_response, in tls13_add_certificate() 415 !CBB_add_bytes(&child, CRYPTO_BUFFER_data(cert_buf), in tls13_add_certificate() 489 !CBB_add_bytes(&body, verify_data, verify_data_len) || in tls13_add_finished()
|
D | handshake_client.cc | 300 !CBB_add_bytes(&body, ssl->s3->client_random, SSL3_RANDOM_SIZE) || in ssl_write_client_hello() 307 !CBB_add_bytes(&child, hs->session_id, hs->session_id_len)) { in ssl_write_client_hello() 313 !CBB_add_bytes(&child, ssl->d1->cookie, ssl->d1->cookie_len)) { in ssl_write_client_hello() 1061 !CBB_add_bytes(transcript.get(), ssl->s3->client_random, in do_read_server_key_exchange() 1063 !CBB_add_bytes(transcript.get(), ssl->s3->server_random, in do_read_server_key_exchange() 1065 !CBB_add_bytes(transcript.get(), CBS_data(¶meter), in do_read_server_key_exchange() 1292 !CBB_add_bytes(&child, (const uint8_t *)identity, in do_send_client_key_exchange() 1375 !CBB_add_bytes(&child, pms.data(), pms.size()) || in do_send_client_key_exchange() 1377 !CBB_add_bytes(&child, psk, psk_len) || in do_send_client_key_exchange() 1513 !CBB_add_bytes(&child, ssl->s3->next_proto_negotiated.data(), in do_send_client_finished() [all …]
|
D | handshake_server.cc | 734 !CBB_add_bytes(&body, ssl->s3->server_random, SSL3_RANDOM_SIZE) || in do_send_server_hello() 736 !CBB_add_bytes(&session_id, session->session_id, in do_send_server_hello() 774 !CBB_add_bytes(&ocsp_response, in do_send_server_certificate() 794 !CBB_add_bytes(cbb.get(), ssl->s3->client_random, SSL3_RANDOM_SIZE) || in do_send_server_certificate() 795 !CBB_add_bytes(cbb.get(), ssl->s3->server_random, SSL3_RANDOM_SIZE)) { in do_send_server_certificate() 804 !CBB_add_bytes(&child, (const uint8_t *)ssl->psk_identity_hint, in do_send_server_certificate() 856 !CBB_add_bytes(&body, hs->server_params.data() + 2 * SSL3_RANDOM_SIZE, in do_send_server_key_exchange() 1242 !CBB_add_bytes(&child, premaster_secret.data(), in do_read_client_key_exchange() 1245 !CBB_add_bytes(&child, psk, psk_len) || in do_read_client_key_exchange()
|
D | t1_lib.cc | 585 !CBB_add_bytes(&name, (const uint8_t *)ssl->tlsext_hostname, in ext_sni_add_clienthello() 678 !CBB_add_bytes(&prev_finished, ssl->s3->previous_client_finished, in ext_ri_add_clienthello() 934 !CBB_add_bytes(&ticket, ticket_data, ticket_len) || in ext_ticket_add_clienthello() 1222 !CBB_add_bytes(&contents, npa, npa_len) || in ext_npn_add_serverhello() 1315 CBB_add_bytes( in ext_sct_add_serverhello() 1338 !CBB_add_bytes(&proto_list, ssl->alpn_client_proto_list, in ext_alpn_add_clienthello() 1483 !CBB_add_bytes(&proto, ssl->s3->alpn_selected.data(), in ext_alpn_add_serverhello() 1839 !CBB_add_bytes(&ticket, ssl->session->tlsext_tick, in ext_pre_shared_key_add_clienthello() 1844 !CBB_add_bytes(&binder, zero_binder, binder_len)) { in ext_pre_shared_key_add_clienthello() 2100 !CBB_add_bytes(&kse_bytes, hs->key_share_bytes.data(), in ext_key_share_add_clienthello() [all …]
|
D | tls13_server.cc | 186 !CBB_add_bytes(&nonce_cbb, nonce, sizeof(nonce)) || in add_new_session_tickets() 497 !CBB_add_bytes(&body, kHelloRetryRequest, SSL3_RANDOM_SIZE) || in do_send_hello_retry_request() 499 !CBB_add_bytes(&session_id, hs->session_id, hs->session_id_len) || in do_send_hello_retry_request() 567 !CBB_add_bytes(&body, ssl->s3->server_random, SSL3_RANDOM_SIZE) || in do_send_server_hello() 569 !CBB_add_bytes(&session_id, hs->session_id, hs->session_id_len) || in do_send_server_hello()
|
D | tls13_enc.cc | 83 !CBB_add_bytes(&child, (const uint8_t *)kTLS13LabelVersion, in hkdf_expand_label() 85 !CBB_add_bytes(&child, (const uint8_t *)label, label_len) || in hkdf_expand_label() 87 !CBB_add_bytes(&child, hash, hash_len) || in hkdf_expand_label()
|
D | ssl_key_share.cc | 143 return !!CBB_add_bytes(out, public_key, sizeof(public_key)); in Offer()
|
D | custom_extensions.cc | 93 !CBB_add_bytes(&contents_cbb, contents, contents_len) || in custom_ext_add_hello()
|
D | ssl_session.cc | 490 return CBB_add_bytes(out, (const uint8_t *)kTicketPlaceholder, in ssl_encrypt_ticket_with_cipher_ctx() 521 if (!CBB_add_bytes(out, key_name, 16) || in ssl_encrypt_ticket_with_cipher_ctx() 522 !CBB_add_bytes(out, iv, EVP_CIPHER_CTX_iv_length(ctx.get())) || in ssl_encrypt_ticket_with_cipher_ctx()
|
D | ssl_cert.cc | 463 !CBB_add_bytes(&child, CRYPTO_BUFFER_data(buffer), in ssl_add_cert_chain() 734 !CBB_add_bytes(&name_cbb, CRYPTO_BUFFER_data(name), in ssl_add_client_CA_list()
|
D | ssl_asn1.cc | 230 !CBB_add_bytes(&child, CRYPTO_BUFFER_data(buffer), in SSL_SESSION_to_bytes_full() 343 if (!CBB_add_bytes(&child, CRYPTO_BUFFER_data(buffer), in SSL_SESSION_to_bytes_full()
|
D | handshake.cc | 469 !CBB_add_bytes(&body, finished, finished_len) || in ssl_send_finished()
|
/external/boringssl/src/crypto/pkcs7/ |
D | pkcs7.c | 150 !CBB_add_bytes(&oid, kPKCS7SignedData, sizeof(kPKCS7SignedData)) || in pkcs7_bundle() 160 !CBB_add_bytes(&oid, kPKCS7Data, sizeof(kPKCS7Data)) || in pkcs7_bundle()
|
/external/boringssl/src/crypto/digest_extra/ |
D | digest_extra.c | 206 if (!CBB_add_bytes(&oid, kMDOIDs[i].oid, kMDOIDs[i].oid_len)) { in EVP_marshal_digest_algorithm()
|
/external/boringssl/src/include/openssl/ |
D | bytestring.h | 413 OPENSSL_EXPORT int CBB_add_bytes(CBB *cbb, const uint8_t *data, size_t len);
|