/external/boringssl/src/crypto/bn/ |
D | bn_asn1.c | 29 if (CBS_data(&child)[0] & 0x80) { in BN_cbs2unsigned() 35 if (CBS_data(&child)[0] == 0x00 && in BN_cbs2unsigned() 37 !(CBS_data(&child)[1] & 0x80)) { in BN_cbs2unsigned() 42 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; in BN_cbs2unsigned() 58 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; in BN_cbs2unsigned_buggy()
|
/external/boringssl/src/crypto/bytestring/ |
D | ber.c | 38 CBS_init(&in, CBS_data(orig_in), CBS_len(orig_in)); in cbs_find_ber() 51 CBS_data(&contents)[header_len-1] == 0x80) { in cbs_find_ber() 80 memcmp(CBS_data(contents), "\x00\x00", 2) == 0; in is_eoc() 111 if (header_len > 0 && CBS_data(&contents)[header_len - 1] == 0x80) { in cbs_convert_ber() 131 CBS_init(&in_copy, CBS_data(in), CBS_len(in)); in cbs_convert_ber() 182 if (!CBB_add_bytes(out_contents, CBS_data(&contents), in cbs_convert_ber()
|
D | cbs.c | 46 const uint8_t *CBS_data(const CBS *cbs) { in CBS_data() function 288 return CBS_data(cbs)[0] == tag_value; in CBS_peek_asn1_tag() 301 data = CBS_data(&bytes); in CBS_get_asn1_uint64() 403 boolean = CBS_data(&child2)[0]; in CBS_get_optional_asn1_bool()
|
D | bytestring_test.cc | 132 memcmp(CBS_data(&contents), "\x01\x02", 2) != 0) { in TestGetASN1() 193 memcmp(CBS_data(&contents), "\x04\x01\x01", 3) != 0) { in TestGetASN1() 205 CBS_data(&contents)[0] != 1) { in TestGetASN1()
|
/external/boringssl/src/crypto/x509/ |
D | pkcs7.c | 51 CBS_init(&in, CBS_data(cbs), CBS_len(cbs)); in pkcs7_parse_header() 80 CBS_init(out, CBS_data(&signed_data), CBS_len(&signed_data)); in pkcs7_parse_header() 121 inp = CBS_data(&cert); in PKCS7_get_certificates() 127 assert(inp == CBS_data(&cert) + CBS_len(&cert)); in PKCS7_get_certificates() 191 inp = CBS_data(&crl_data); in PKCS7_get_CRLs() 197 assert(inp == CBS_data(&crl_data) + CBS_len(&crl_data)); in PKCS7_get_CRLs()
|
/external/boringssl/src/crypto/evp/ |
D | evp_extra_test.cc | 613 const uint8_t *derp = CBS_data(&spki); in ParseCertificate() 615 if (!pubkey || derp != CBS_data(&spki) + CBS_len(&spki)) { in ParseCertificate() 619 derp = CBS_data(&algorithm); in ParseCertificate() 621 if (!algor || derp != CBS_data(&algorithm) + CBS_len(&algorithm)) { in ParseCertificate() 652 !EVP_DigestVerifyUpdate(md_ctx.get(), CBS_data(&tbs_cert), in TestEVP_DigestVerifyInitFromAlgorithm() 654 !EVP_DigestVerifyFinal(md_ctx.get(), CBS_data(&signature), in TestEVP_DigestVerifyInitFromAlgorithm()
|
D | p_rsa.c | 592 *out_label = CBS_data(&label); in EVP_PKEY_CTX_get0_rsa_oaep_label()
|
/external/boringssl/src/ssl/ |
D | ssl_asn1.c | 463 memcpy(out, CBS_data(&value), CBS_len(&value)); in SSL_SESSION_parse_bounded_octet_string() 499 const uint8_t *ptr = CBS_data(cbs); in parse_x509() 504 CBS_skip(cbs, ptr - CBS_data(cbs)); in parse_x509() 553 memcpy(ret->session_id, CBS_data(&session_id), CBS_len(&session_id)); in SSL_SESSION_parse() 555 memcpy(ret->master_key, CBS_data(&master_key), CBS_len(&master_key)); in SSL_SESSION_parse() 608 memcpy(ret->peer_sha256, CBS_data(&peer_sha256), sizeof(ret->peer_sha256)); in SSL_SESSION_parse() 716 *pp = CBS_data(&cbs); in d2i_SSL_SESSION()
|
D | s3_clnt.c | 806 memcpy(ssl->s3->server_random, CBS_data(&server_random), SSL3_RANDOM_SIZE); in ssl3_get_server_hello() 830 memcpy(ssl->session->session_id, CBS_data(&session_id), in ssl3_get_server_hello() 1010 data = CBS_data(&certificate); in ssl3_get_server_certificate() 1017 if (data != CBS_data(&certificate) + CBS_len(&certificate)) { in ssl3_get_server_certificate() 1158 dh->p = BN_bin2bn(CBS_data(&dh_p), CBS_len(&dh_p), NULL); in ssl3_get_server_key_exchange() 1159 dh->g = BN_bin2bn(CBS_data(&dh_g), CBS_len(&dh_g), NULL); in ssl3_get_server_key_exchange() 1227 CBS_init(¶meter, CBS_data(&server_key_exchange_orig), in ssl3_get_server_key_exchange() 1269 !EVP_DigestVerifyUpdate(&md_ctx, CBS_data(¶meter), in ssl3_get_server_key_exchange() 1271 !EVP_DigestVerifyFinal(&md_ctx, CBS_data(&signature), in ssl3_get_server_key_exchange() 1388 data = CBS_data(&distinguished_name); in ssl3_get_certificate_request() [all …]
|
D | s3_srvr.c | 676 if (!ssl3_update_handshake_hash(ssl, CBS_data(&v2_client_hello), in ssl3_get_v2_client_hello() 681 ssl->msg_callback(0, SSL2_VERSION, 0, CBS_data(&v2_client_hello), in ssl3_get_v2_client_hello() 708 memcpy(random + (SSL3_RANDOM_SIZE - rand_len), CBS_data(&challenge), in ssl3_get_v2_client_hello() 855 memcpy(ssl->s3->client_random, CBS_data(&client_random), SSL3_RANDOM_SIZE); in ssl3_get_client_hello() 1005 if (memchr(CBS_data(&compression_methods), 0, in ssl3_get_client_hello() 1568 CBS_data(&encrypted_premaster_secret), in ssl3_get_client_key_exchange() 1660 CBS_data(&peer_key), CBS_len(&peer_key))) { in ssl3_get_client_key_exchange() 1814 !EVP_PKEY_verify(pctx, CBS_data(&signature), CBS_len(&signature), digest, in ssl3_get_cert_verify() 1907 SHA256_Update(&sha256, CBS_data(&certificate), CBS_len(&certificate)); in ssl3_get_client_certificate() 1914 data = CBS_data(&certificate); in ssl3_get_client_certificate() [all …]
|
D | custom_extensions.c | 147 !ext->parse_callback(ssl, value, CBS_data(extension), CBS_len(extension), in custom_ext_parse_serverhello() 171 !ext->parse_callback(ssl, value, CBS_data(extension), CBS_len(extension), in custom_ext_parse_clienthello()
|
D | t1_lib.c | 263 ctx->session_id = CBS_data(&session_id); in ssl_early_callback_init() 280 ctx->cipher_suites = CBS_data(&cipher_suites); in ssl_early_callback_init() 288 ctx->compression_methods = CBS_data(&compression_methods); in ssl_early_callback_init() 305 ctx->extensions = CBS_data(&extensions); in ssl_early_callback_init() 329 *out_data = CBS_data(&extension); in SSL_early_callback_ctx_extension_get() 894 const uint8_t *d = CBS_data(&renegotiated_connection); in ext_ri_parse_serverhello() 1300 const uint8_t *const orig_contents = CBS_data(contents); in ext_npn_parse_serverhello() 1548 ssl, &selected, &selected_len, CBS_data(&protocol_name_list), in ext_alpn_parse_clienthello() 1768 CBS_init(&profile_ids_tmp, CBS_data(&profile_ids), CBS_len(&profile_ids)); in ext_srtp_parse_clienthello() 1865 if (memchr(CBS_data(&ec_point_format_list), TLSEXT_ECPOINTFORMAT_uncompressed, in ext_ec_point_parse_serverhello() [all …]
|
D | dtls_record.c | 217 type, version, sequence, CBS_data(&body), in dtls_open_record()
|
D | tls_record.c | 219 type, version, ssl->s3->read_sequence, CBS_data(&body), in tls_open_record()
|
D | d1_clnt.c | 557 memcpy(ssl->d1->cookie, CBS_data(&cookie), CBS_len(&cookie)); in dtls1_get_hello_verify()
|
/external/boringssl/src/crypto/pkcs8/ |
D | pkcs8.c | 703 CBS_init(&in, CBS_data(content_infos), CBS_len(content_infos)); in PKCS12_handle_content_infos() 782 inp = CBS_data(&ai); in PKCS12_handle_content_info() 787 if (inp != CBS_data(&ai) + CBS_len(&ai)) { in PKCS12_handle_content_info() 794 CBS_data(&encrypted_contents), CBS_len(&encrypted_contents), in PKCS12_handle_content_info() 817 const uint8_t *inp = CBS_data(&wrapped_contents); in PKCS12_handle_content_info() 838 if (inp != CBS_data(&wrapped_contents) + CBS_len(&wrapped_contents)) { in PKCS12_handle_content_info() 874 const uint8_t *inp = CBS_data(&cert); in PKCS12_handle_content_info() 880 if (inp != CBS_data(&cert) + CBS_len(&cert)) { in PKCS12_handle_content_info() 919 CBS_init(&in, CBS_data(ber_in), CBS_len(ber_in)); in PKCS12_get_key_and_certs() 1020 if (!pkcs12_key_gen_raw(ctx.password, ctx.password_len, CBS_data(&salt), in PKCS12_get_key_and_certs() [all …]
|
/external/boringssl/src/include/openssl/ |
D | bytestring.h | 51 OPENSSL_EXPORT const uint8_t *CBS_data(const CBS *cbs);
|
/external/boringssl/src/crypto/obj/ |
D | obj.c | 220 obj.data = CBS_data(cbs); in OBJ_cbs2nid()
|
/external/conscrypt/src/main/native/ |
D | org_conscrypt_NativeCrypto.cpp | 10808 const uint8_t *p = CBS_data(&serial); 11012 const uint8_t* ptr = CBS_data(&extensions);
|