Home
last modified time | relevance | path

Searched refs:CBS_init (Results 1 – 25 of 58) sorted by relevance

123

/external/boringssl/src/crypto/bytestring/
Dbytestring_test.cc35 CBS_init(&data, kData, sizeof(kData)); in TEST()
53 CBS_init(&data, kData, sizeof(kData)); in TEST()
79 CBS_init(&data, kData, sizeof(kData)); in TEST()
100 CBS_init(&data, kData1, sizeof(kData1)); in TEST()
103 CBS_init(&data, kData2, sizeof(kData2)); in TEST()
106 CBS_init(&data, kData3, sizeof(kData3)); in TEST()
125 CBS_init(&data, kData1, sizeof(kData1)); in TEST()
132 CBS_init(&data, kData2, sizeof(kData2)); in TEST()
136 CBS_init(&data, kData3, sizeof(kData3)); in TEST()
140 CBS_init(&data, kData4, sizeof(kData4)); in TEST()
[all …]
Dber.c63 CBS_init(&in, CBS_data(orig_in), CBS_len(orig_in)); in cbs_find_ber()
218 CBS_init(out, *out_storage, len); in CBS_asn1_ber_to_der()
258 CBS_init(out, data, len); in CBS_get_asn1_implicit_string()
Dcbs.c27 void CBS_init(CBS *cbs, const uint8_t *data, size_t len) { in CBS_init() function
160 CBS_init(out, v, len); in CBS_get_bytes()
488 CBS_init(out, NULL, 0); in CBS_get_optional_asn1_octet_string()
Dcbb.c574 CBS_init(&cbs, (const uint8_t *)text, len); in CBB_add_asn1_oid_from_text()
628 CBS_init(&cbs, CBB_data(cbb), CBB_len(cbb)); in CBB_flush_asn1_set_of()
652 CBS_init(&cbs, buf, buf_len); in CBB_flush_asn1_set_of()
/external/boringssl/src/crypto/evp/
Devp_asn1.c254 CBS_init(&cbs, *inp, (size_t)len); in d2i_PrivateKey()
259 CBS_init(&cbs, *inp, (size_t)len); in d2i_PrivateKey()
283 CBS_init(&cbs, in, (size_t)in_len); in num_elements()
309 CBS_init(&cbs, *inp, (size_t)len); in d2i_AutoPrivateKey()
356 CBS_init(&cbs, *inp, len < 0 ? 0 : (size_t)len); in d2i_PublicKey()
/external/boringssl/src/crypto/pkcs7/
Dpkcs7_x509.c85 CBS_init(&crls, NULL, 0); in PKCS7_get_CRLs()
144 CBS_init(&cbs, data, len); in PKCS7_get_PEM_certificates()
166 CBS_init(&cbs, data, len); in PKCS7_get_PEM_CRLs()
278 CBS_init(&cbs, *inp, len); in d2i_PKCS7()
301 CBS_init(&cbs, data, len); in d2i_PKCS7_bio()
381 CBS_init(&cbs, der, len); in PKCS7_sign()
Dpkcs7_test.cc481 CBS_init(&pkcs7, der_bytes, der_len); in TestCertRepase()
491 CBS_init(&pkcs7, result_data, result_len); in TestCertRepase()
563 CBS_init(&pkcs7, der_bytes, der_len); in TestCRLReparse()
573 CBS_init(&pkcs7, result_data, result_len); in TestCRLReparse()
Dpkcs7.c77 CBS_init(out, CBS_data(&signed_data), CBS_len(&signed_data)); in pkcs7_parse_header()
102 CBS_init(&certificates, NULL, 0); in PKCS7_get_raw_certificates()
/external/boringssl/src/crypto/obj/
Dobj_test.cc35 CBS_init(&cbs, kDER, sizeof(kDER)); in TEST()
50 CBS_init(&cbs, NULL, 0); in TEST()
57 CBS_init(&cbs, kUnknownDER, sizeof(kUnknownDER)); in TEST()
/external/boringssl/src/crypto/rsa_extra/
Drsa_asn1.c117 CBS_init(&cbs, in, in_len); in RSA_public_key_from_bytes()
206 CBS_init(&cbs, in, in_len); in RSA_private_key_from_bytes()
254 CBS_init(&cbs, *inp, (size_t)len); in d2i_RSAPublicKey()
282 CBS_init(&cbs, *inp, (size_t)len); in d2i_RSAPrivateKey()
/external/boringssl/src/crypto/dsa/
Ddsa_asn1.c234 CBS_init(&cbs, *inp, (size_t)len); in d2i_DSA_SIG()
262 CBS_init(&cbs, *inp, (size_t)len); in d2i_DSAPublicKey()
290 CBS_init(&cbs, *inp, (size_t)len); in d2i_DSAPrivateKey()
318 CBS_init(&cbs, *inp, (size_t)len); in d2i_DSAparams()
/external/boringssl/src/crypto/digest_extra/
Ddigest_test.cc263 CBS_init(&cbs, kSHA256, sizeof(kSHA256)); in TEST()
268 CBS_init(&cbs, kSHA256NoParam, sizeof(kSHA256NoParam)); in TEST()
273 CBS_init(&cbs, kSHA256GarbageParam, sizeof(kSHA256GarbageParam)); in TEST()
/external/boringssl/src/crypto/ec_extra/
Dec_asn1.c306 CBS_init(out_base_x, CBS_data(&base), field_len); in parse_explicit_prime_curve()
307 CBS_init(out_base_y, CBS_data(&base) + field_len, field_len); in parse_explicit_prime_curve()
434 CBS_init(&cbs, *inp, (size_t)len); in d2i_ECPrivateKey()
463 CBS_init(&cbs, *inp, (size_t)len); in d2i_ECParameters()
/external/boringssl/src/ssl/test/
Dfuzzer.h296 CBS_init(&cbs, buf, len); in TestOneInput()
437 CBS_init(&cbs, kP256KeyPKCS8, sizeof(kP256KeyPKCS8)); in Init()
533 CBS_init(&b->cbs, in, len); in MakeBIO()
/external/boringssl/src/crypto/asn1/
Da_mbstr.c134 CBS_init(&cbs, in, len); in OPENSSL_DECLARE_ERROR_REASON()
253 CBS_init(&cbs, in, len); in OPENSSL_DECLARE_ERROR_REASON()
/external/boringssl/src/crypto/ecdsa_extra/
Decdsa_asn1.c171 CBS_init(&cbs, in, in_len); in ECDSA_SIG_from_bytes()
246 CBS_init(&cbs, *inp, (size_t)len); in d2i_ECDSA_SIG()
/external/nos/host/android/hals/keymaster/
Dimport_wrapped_key.cpp79 CBS_init(out, NULL, 0); in CBS_get_optional_asn1_set()
100 CBS_init(out, NULL, 0); in CBS_get_optional_asn1_null()
359 CBS_init(&cbs, wrappedKeyData.data(), wrappedKeyData.size()); in import_wrapped_key_request()
/external/boringssl/src/crypto/dh/
Ddh_test.cc341 CBS_init(&cbs, kParams, sizeof(kParams)); in TestASN1()
382 CBS_init(&cbs, kParamsDSA, sizeof(kParamsDSA)); in TestASN1()
Ddh_asn1.c139 CBS_init(&cbs, *inp, (size_t)len); in d2i_DHparams()
/external/boringssl/src/ssl/
Dd1_both.cc351 CBS_init(&cbs, record.data(), record.size()); in dtls1_open_handshake()
416 CBS_init(&out->body, frag->data + DTLS1_HM_HEADER_LENGTH, frag->msg_len); in dtls1_get_message()
417 CBS_init(&out->raw, frag->data, DTLS1_HM_HEADER_LENGTH + frag->msg_len); in dtls1_get_message()
673 CBS_init(&cbs, msg->data, msg->len); in seal_next_message()
Dd1_pkt.cc149 CBS_init(&cbs, record.data(), record.size()); in dtls1_open_app_data()
/external/boringssl/src/crypto/pkcs8/
Dpkcs8_x509.c125 CBS_init(&cbs, der, (size_t)der_len);
187 CBS_init(&cbs, in, in_len); in PKCS8_decrypt()
388 CBS_init(&bag_attrs, NULL, 0); in PKCS12_handle_safe_bag()
540 CBS_init(&safe_contents, out, out_len); in PKCS12_handle_content_info()
897 CBS_init(&ber_bytes, p12->ber_bytes, p12->ber_len); in PKCS12_parse()
967 CBS_init(&name_cbs, (const uint8_t *)name, strlen(name)); in add_bag_attributes()
/external/boringssl/src/crypto/curve25519/
Dspake25519.c283 CBS_init(&my_name_cbs, my_name, my_name_len); in SPAKE2_CTX_new()
284 CBS_init(&their_name_cbs, their_name, their_name_len); in SPAKE2_CTX_new()
/external/boringssl/src/tool/
Dpkcs12.cc121 CBS_init(&pkcs12, contents.get(), size); in DoPKCS12()
/external/libchrome/crypto/
Drsa_private_key.cc48 CBS_init(&cbs, input.data(), input.size()); in CreateFromPrivateKeyInfo()

123