Home
last modified time | relevance | path

Searched refs:CBB_add_bytes (Results 1 – 25 of 32) sorted by relevance

12

/external/boringssl/src/crypto/pkcs8/
Dp5_pbev2.c132 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()
Dpkcs8.c334 !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/
Dp_ed25519_asn1.c80 !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()
Dp_rsa_asn1.c75 !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()
Dp_ec_asn1.c78 !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()
Dp_dsa_asn1.c113 !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/
Dbytestring_test.cc330 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 …]
Dber.c178 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()
Dcbb.c392 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()
Dcbs.c570 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/
Dtls13_both.cc86 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()
Dhandshake_client.cc300 !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(&parameter), 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 …]
Dhandshake_server.cc734 !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()
Dt1_lib.cc585 !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 …]
Dtls13_server.cc186 !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()
Dtls13_enc.cc83 !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()
Dssl_key_share.cc143 return !!CBB_add_bytes(out, public_key, sizeof(public_key)); in Offer()
Dcustom_extensions.cc93 !CBB_add_bytes(&contents_cbb, contents, contents_len) || in custom_ext_add_hello()
Dssl_session.cc490 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()
Dssl_cert.cc463 !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()
Dssl_asn1.cc230 !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()
Dhandshake.cc469 !CBB_add_bytes(&body, finished, finished_len) || in ssl_send_finished()
/external/boringssl/src/crypto/pkcs7/
Dpkcs7.c150 !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/
Ddigest_extra.c206 if (!CBB_add_bytes(&oid, kMDOIDs[i].oid, kMDOIDs[i].oid_len)) { in EVP_marshal_digest_algorithm()
/external/boringssl/src/include/openssl/
Dbytestring.h413 OPENSSL_EXPORT int CBB_add_bytes(CBB *cbb, const uint8_t *data, size_t len);

12