/external/boringssl/src/crypto/bytestring/ |
cbs.c | 27 void CBS_init(CBS *cbs, const uint8_t *data, size_t len) { 28 cbs->data = data; 29 cbs->len = len; 32 static int cbs_get(CBS *cbs, const uint8_t **p, size_t n) { 33 if (cbs->len < n) { 37 *p = cbs->data; 38 cbs->data += n; 39 cbs->len -= n [all...] |
internal.h | 40 OPENSSL_EXPORT int CBS_asn1_ber_to_der(CBS *in, CBS *out, 55 OPENSSL_EXPORT int CBS_get_asn1_implicit_string(CBS *in, CBS *out, 72 // The following functions read one Unicode code point from |cbs| with the 75 OPENSSL_EXPORT int cbs_get_utf8(CBS *cbs, uint32_t *out); 76 OPENSSL_EXPORT int cbs_get_latin1(CBS *cbs, uint32_t *out); 77 OPENSSL_EXPORT int cbs_get_ucs2_be(CBS *cbs, uint32_t *out) [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, CBS *out, uint8_t **out_storage) { 222 int CBS_get_asn1_implicit_string(CBS *in, CBS *out, uint8_t **out_storage [all...] |
unicode.c | 41 int cbs_get_utf8(CBS *cbs, uint32_t *out) { 43 if (!CBS_get_u8(cbs, &c)) { 68 if (!CBS_get_u8(cbs, &c) || 83 int cbs_get_latin1(CBS *cbs, uint32_t *out) { 85 if (!CBS_get_u8(cbs, &c)) { 92 int cbs_get_ucs2_be(CBS *cbs, uint32_t *out) { 95 if (!CBS_get_u16(cbs, &c) | [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...] |
pool.h | 63 CBS *cbs, CRYPTO_BUFFER_POOL *pool); 82 OPENSSL_EXPORT void CRYPTO_BUFFER_init_CBS(const CRYPTO_BUFFER *buf, CBS *out);
|
pkcs7.h | 36 // PKCS7_get_raw_certificates parses a PKCS#7, SignedData structure from |cbs| 38 // success and zero on error. |cbs| is advanced passed the structure. 43 STACK_OF(CRYPTO_BUFFER) *out_certs, CBS *cbs, CRYPTO_BUFFER_POOL *pool); variable 47 OPENSSL_EXPORT int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs); variable 54 // PKCS7_get_CRLs parses a PKCS#7, SignedData structure from |cbs| and appends 56 // |cbs| is advanced passed the structure. 60 OPENSSL_EXPORT int PKCS7_get_CRLs(STACK_OF(X509_CRL) *out_crls, CBS *cbs); variable [all...] |
/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) { 44 CBS in, content_info, content_type, wrapped_signed_data, signed_data; 49 if (!CBS_asn1_ber_to_der(cbs, &in, der_bytes) || 86 int PKCS7_get_raw_certificates(STACK_OF(CRYPTO_BUFFER) *out_certs, CBS *cbs, 88 CBS signed_data, certificates; 94 if (!pkcs7_parse_header(&der_bytes, &signed_data, cbs) || [all...] |
pkcs7_x509.c | 32 int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs) { 37 !PKCS7_get_raw_certificates(raw, cbs, NULL)) { 65 int PKCS7_get_CRLs(STACK_OF(X509_CRL) *out_crls, CBS *cbs) { 66 CBS signed_data, crls; 72 if (!pkcs7_parse_header(&der_bytes, &signed_data, cbs) || 89 CBS crl_data; 143 CBS cbs; local 165 CBS cbs; local 277 CBS cbs; local 300 CBS cbs; local 380 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, 66 static int CBS_get_optional_asn1_set(CBS *cbs, CBS *out, int *out_present, 68 CBS child; 70 if (!CBS_get_optional_asn1(cbs, &child, &present, tag)) { 87 static int CBS_get_optional_asn1_null(CBS *cbs, CBS *out, int *out_present 353 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, 105 const char *pass, size_t pass_len, CBS *param); 112 const char *pass, size_t pass_len, CBS *param);
|
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/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/crypto/evp/ |
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;
|
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) || 152 EVP_PKEY *EVP_parse_private_key(CBS *cbs) { 253 CBS cbs; local 282 CBS cbs, sequence; local 308 CBS cbs; local 355 CBS cbs; local [all...] |
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/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/ssl/ |
ssl_asn1.cc | 396 // tagged with |tag| from |cbs| and saves it in |*out|. If the element was not 399 static int SSL_SESSION_parse_string(CBS *cbs, UniquePtr<char> *out, unsigned tag) { 400 CBS value; 402 if (!CBS_get_optional_asn1_octet_string(cbs, &value, &present, tag)) { 424 // tagged with |tag| from |cbs| and stows it in |*out|. It returns one on 426 static bool SSL_SESSION_parse_octet_string(CBS *cbs, Array<uint8_t> *out, 428 CBS value; 429 if (!CBS_get_optional_asn1_octet_string(cbs, &value, NULL, tag)) 816 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) || 95 CBS child; 138 CBS child, public_key; 244 // is_unsigned_integer returns one if |cbs| is a valid unsigned DER INTEGER and 246 static int is_unsigned_integer(const CBS *cbs) { 247 if (CBS_len(cbs) == 0) 433 CBS cbs; local 462 CBS cbs; local [all...] |
/external/boringssl/src/ssl/test/ |
test_state.h | 34 static std::unique_ptr<TestState> Deserialize(CBS *cbs, SSL_CTX *ctx); 82 bool DeserializeContextState(CBS *in, SSL_CTX *out);
|
test_state.cc | 106 bool DeserializeContextState(CBS *cbs, SSL_CTX *ctx) { 107 CBS in, sessions, ticket_keys; 110 if (!CBS_get_u24_length_prefixed(cbs, &in) || 147 std::unique_ptr<TestState> TestState::Deserialize(CBS *cbs, SSL_CTX *ctx) { 148 CBS in, pending_session, text; 152 if (!CBS_get_u24_length_prefixed(cbs, &in) ||
|