HomeSort by relevance Sort by last modified time
    Searched refs:CBS (Results 1 - 25 of 100) sorted by null

1 2 3 4

  /external/boringssl/src/crypto/bytestring/
internal.h 42 OPENSSL_EXPORT int CBS_asn1_ber_to_der(CBS *in, uint8_t **out, size_t *out_len);
56 OPENSSL_EXPORT int CBS_get_asn1_implicit_string(CBS *in, CBS *out,
cbs.c 31 void CBS_init(CBS *cbs, const uint8_t *data, size_t len) {
32 cbs->data = data;
33 cbs->len = len;
36 static int cbs_get(CBS *cbs, const uint8_t **p, size_t n) {
37 if (cbs->len < n) {
41 *p = cbs->data;
42 cbs->data += n;
43 cbs->len -= n
    [all...]
ber.c 56 static int cbs_find_ber(const CBS *orig_in, char *ber_found, unsigned depth) {
57 CBS in;
67 CBS contents;
99 static char is_eoc(size_t header_len, CBS *contents) {
111 static int cbs_convert_ber(CBS *in, CBB *out, unsigned string_tag,
120 CBS contents;
192 int CBS_asn1_ber_to_der(CBS *in, uint8_t **out, size_t *out_len) {
218 int CBS_get_asn1_implicit_string(CBS *in, CBS *out, uint8_t **out_storage,
234 CBS child
    [all...]
  /external/boringssl/src/include/openssl/
bytestring.h 29 // A "CBS" (CRYPTO ByteString) represents a string of bytes in memory and
57 // CBS_init sets |cbs| to point to |data|. It does not take ownership of
59 OPENSSL_EXPORT void CBS_init(CBS *cbs, const uint8_t *data, size_t len);
61 // CBS_skip advances |cbs| by |len| bytes. It returns one on success and zero
63 OPENSSL_EXPORT int CBS_skip(CBS *cbs, size_t len);
65 // CBS_data returns a pointer to the contents of |cbs|.
66 OPENSSL_EXPORT const uint8_t *CBS_data(const CBS *cbs);
    [all...]
pkcs7.h 36 // PKCS7_get_raw_certificates parses a PKCS#7, SignedData structure from |cbs|
40 STACK_OF(CRYPTO_BUFFER) *out_certs, CBS *cbs, CRYPTO_BUFFER_POOL *pool); variable
44 OPENSSL_EXPORT int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs); variable
51 // PKCS7_get_CRLs parses a PKCS#7, SignedData structure from |cbs| and appends
54 OPENSSL_EXPORT int PKCS7_get_CRLs(STACK_OF(X509_CRL) *out_crls, CBS *cbs); variable
pool.h 53 CBS *cbs, CRYPTO_BUFFER_POOL *pool);
72 OPENSSL_EXPORT void CRYPTO_BUFFER_init_CBS(const CRYPTO_BUFFER *buf, CBS *out);
pkcs8.h 115 // the EncryptedPrivateKeyInfo structure from |cbs| and advances |cbs|. It
117 OPENSSL_EXPORT EVP_PKEY *PKCS8_parse_encrypted_private_key(CBS *cbs,
127 CBS *in, const char *password);
  /external/boringssl/src/crypto/pkcs7/
internal.h 26 // SignedData blob from |cbs| and sets |*out| to point to the rest of the
33 int pkcs7_parse_header(uint8_t **der_bytes, CBS *out, CBS *cbs);
pkcs7.c 36 // SignedData blob from |cbs| and sets |*out| to point to the rest of the
43 int pkcs7_parse_header(uint8_t **der_bytes, CBS *out, CBS *cbs) {
45 CBS in, content_info, content_type, wrapped_signed_data, signed_data;
50 if (!CBS_asn1_ber_to_der(cbs, der_bytes, &der_len)) {
56 CBS_init(&in, CBS_data(cbs), CBS_len(cbs));
95 int PKCS7_get_raw_certificates(STACK_OF(CRYPTO_BUFFER) *out_certs, CBS *cbs,
    [all...]
pkcs7_x509.c 31 int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs) {
36 !PKCS7_get_raw_certificates(raw, cbs, NULL)) {
64 int PKCS7_get_CRLs(STACK_OF(X509_CRL) *out_crls, CBS *cbs) {
65 CBS signed_data, crls;
70 if (!pkcs7_parse_header(&der_bytes, &signed_data, cbs)) {
92 CBS crl_data;
146 CBS cbs; local
168 CBS cbs; local
    [all...]
  /external/nos/host/android/hals/keymaster/
import_wrapped_key.cpp 53 using parse_asn1_fn = function<ErrorCode(CBS *cbs, Tag tag,
63 static int CBS_get_optional_asn1_set(CBS *cbs, CBS *out, int *out_present,
65 CBS child;
67 if (!CBS_get_optional_asn1(cbs, &child, &present, tag)) {
84 static int CBS_get_optional_asn1_null(CBS *cbs, CBS *out, int *out_present
345 CBS cbs; local
    [all...]
  /external/boringssl/src/crypto/bn_extra/
bn_asn1.c 21 int BN_parse_asn1_unsigned(CBS *cbs, BIGNUM *ret) {
22 CBS child;
23 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) ||
  /external/boringssl/src/crypto/pkcs8/
internal.h 70 int pkcs8_pbe_decrypt(uint8_t **out, size_t *out_len, CBS *algorithm,
98 const char *pass, size_t pass_len, CBS *param);
105 const char *pass, size_t pass_len, CBS *param);
pkcs8_x509.c 108 CBS cbs;
109 CBS_init(&cbs, der, (size_t)der_len);
110 EVP_PKEY *ret = EVP_parse_private_key(&cbs);
111 if (ret == NULL || CBS_len(&cbs) != 0) {
170 CBS cbs;
171 CBS_init(&cbs, in, in_len);
172 pkey = PKCS8_parse_encrypted_private_key(&cbs, pass, pass_len);
173 if (pkey == NULL || CBS_len(&cbs) != 0)
    [all...]
p5_pbev2.c 117 static const EVP_CIPHER *cbs_to_cipher(const CBS *cbs) {
119 if (CBS_mem_equal(cbs, kCipherOIDs[i].oid, kCipherOIDs[i].oid_len)) {
210 const char *pass, size_t pass_len, CBS *param) {
211 CBS pbe_param, kdf, kdf_obj, enc_scheme, enc_obj;
237 CBS pbkdf2_params, salt;
268 CBS alg_id, prf;
284 CBS null;
297 CBS iv;
  /external/boringssl/src/crypto/evp/
evp_asn1.c 78 static int parse_key_type(CBS *cbs, int *out_type) {
79 CBS oid;
80 if (!CBS_get_asn1(cbs, &oid, CBS_ASN1_OBJECT)) {
96 EVP_PKEY *EVP_parse_public_key(CBS *cbs) {
98 CBS spki, algorithm, key;
101 if (!CBS_get_asn1(cbs, &spki, CBS_ASN1_SEQUENCE) ||
146 EVP_PKEY *EVP_parse_private_key(CBS *cbs) {
244 CBS cbs; local
273 CBS cbs, sequence; local
299 CBS cbs; local
    [all...]
p_rsa_asn1.c 88 static int rsa_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) {
92 CBS null;
134 static int rsa_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) {
136 CBS null;
p_ed25519_asn1.c 59 static int ed25519_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) {
98 static int ed25519_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) {
103 CBS inner;
internal.h 81 int (*pub_decode)(EVP_PKEY *out, CBS *params, CBS *key);
93 int (*priv_decode)(EVP_PKEY *out, CBS *params, CBS *key);
  /external/boringssl/src/crypto/dsa/
dsa_asn1.c 67 static int parse_integer(CBS *cbs, BIGNUM **out) {
73 return BN_parse_asn1_unsigned(cbs, *out);
85 DSA_SIG *DSA_SIG_parse(CBS *cbs) {
90 CBS child;
91 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) ||
114 DSA *DSA_parse_public_key(CBS *cbs) {
119 CBS child
233 CBS cbs; local
261 CBS cbs; local
289 CBS cbs; local
317 CBS cbs; local
    [all...]
  /external/boringssl/src/ssl/
t1_lib.cc 152 static int tls1_check_duplicate_extensions(const CBS *cbs) {
155 CBS extensions = *cbs;
158 CBS extension;
178 extensions = *cbs;
180 CBS extension;
209 CBS client_hello, random, session_id;
225 CBS cookie;
232 CBS cipher_suites, compression_methods
3733 CBS cbs; local
    [all...]
ssl_asn1.cc 402 // explicitly tagged with |tag| from |cbs| and saves it in |*out|. On
407 static int SSL_SESSION_parse_string(CBS *cbs, char **out, unsigned tag) {
408 CBS value;
410 if (!CBS_get_optional_asn1_octet_string(cbs, &value, &present, tag)) {
431 // explicitly tagged with |tag| from |cbs| and stows it in |*out_ptr|
436 static int SSL_SESSION_parse_octet_string(CBS *cbs, uint8_t **out_ptr,
438 CBS value;
439 if (!CBS_get_optional_asn1_octet_string(cbs, &value, NULL, tag))
832 CBS cbs; local
    [all...]
  /external/boringssl/src/crypto/dh/
dh_asn1.c 68 static int parse_integer(CBS *cbs, BIGNUM **out) {
74 return BN_parse_asn1_unsigned(cbs, *out);
86 DH *DH_parse_parameters(CBS *cbs) {
92 CBS child;
93 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) ||
138 CBS cbs; local
139 CBS_init(&cbs, *inp, (size_t)len)
    [all...]
  /external/boringssl/src/crypto/rsa_extra/
rsa_asn1.c 72 static int parse_integer(CBS *cbs, BIGNUM **out) {
78 return BN_parse_asn1_unsigned(cbs, *out);
90 RSA *RSA_parse_public_key(CBS *cbs) {
95 CBS child;
96 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) ||
116 CBS cbs; local
117 CBS_init(&cbs, in, in_len)
205 CBS cbs; local
253 CBS cbs; local
281 CBS cbs; local
    [all...]
  /external/boringssl/src/crypto/ec_extra/
ec_asn1.c 75 EC_KEY *EC_KEY_parse_private_key(CBS *cbs, const EC_GROUP *group) {
76 CBS ec_private_key, private_key;
78 if (!CBS_get_asn1(cbs, &ec_private_key, CBS_ASN1_SEQUENCE) ||
94 CBS child;
142 CBS child, public_key;
245 // is_unsigned_integer returns one if |cbs| is a valid unsigned DER INTEGER and
247 static int is_unsigned_integer(const CBS *cbs) {
248 if (CBS_len(cbs) == 0)
434 CBS cbs; local
463 CBS cbs; local
    [all...]

Completed in 407 milliseconds

1 2 3 4