/external/boringssl/src/crypto/bytestring/ |
cbs.c | 25 void CBS_init(CBS *cbs, const uint8_t *data, size_t len) { 26 cbs->data = data; 27 cbs->len = len; 30 static int cbs_get(CBS *cbs, const uint8_t **p, size_t n) { 31 if (cbs->len < n) { 35 *p = cbs->data; 36 cbs->data += n; 37 cbs->len -= n [all...] |
internal.h | 39 OPENSSL_EXPORT int CBS_asn1_ber_to_der(CBS *in, uint8_t **out, size_t *out_len);
|
ber.c | 31 static int cbs_find_ber(CBS *orig_in, char *ber_found, unsigned depth) { 32 CBS in; 42 CBS contents; 78 static char is_eoc(size_t header_len, CBS *contents) { 89 static int cbs_convert_ber(CBS *in, CBB *out, char squash_header, 96 CBS contents; 127 CBS in_copy, inner_contents; 196 int CBS_asn1_ber_to_der(CBS *in, uint8_t **out, size_t *out_len) {
|
bytestring_test.cc | 34 CBS data; 50 CBS data; 69 CBS data, prefixed; 90 CBS data, prefixed; 121 CBS data, contents; 238 CBS data; 545 CBS in; 663 CBS cbs; local 669 CBS_init(&cbs, (const uint8_t *)test->encoding, test->encoding_len) 694 CBS cbs; local [all...] |
/external/boringssl/src/include/openssl/ |
bytestring.h | 27 * A "CBS" (CRYPTO ByteString) represents a string of bytes in memory and 42 /* CBS_init sets |cbs| to point to |data|. It does not take ownership of 44 OPENSSL_EXPORT void CBS_init(CBS *cbs, const uint8_t *data, size_t len); 46 /* CBS_skip advances |cbs| by |len| bytes. It returns one on success and zero 48 OPENSSL_EXPORT int CBS_skip(CBS *cbs, size_t len); 50 /* CBS_data returns a pointer to the contents of |cbs|. */ 51 OPENSSL_EXPORT const uint8_t *CBS_data(const CBS *cbs); [all...] |
obj.h | 101 /* OBJ_cbs2nid returns the nid corresponding to the DER data in |cbs|, or 103 OPENSSL_EXPORT int OBJ_cbs2nid(const CBS *cbs);
|
ecdsa.h | 151 /* ECDSA_SIG_parse parses a DER-encoded ECDSA-Sig-Value structure from |cbs| and 152 * advances |cbs|. It returns a newly-allocated |ECDSA_SIG| or NULL on error. */ 153 OPENSSL_EXPORT ECDSA_SIG *ECDSA_SIG_parse(CBS *cbs);
|
pkcs8.h | 115 CBS *in, const char *password);
|
rsa.h | 337 * from |cbs| and advances |cbs|. It returns a newly-allocated |RSA| or NULL on 339 OPENSSL_EXPORT RSA *RSA_parse_public_key(CBS *cbs); 343 OPENSSL_EXPORT RSA *RSA_parse_public_key_buggy(CBS *cbs); 362 * from |cbs| and advances |cbs|. It returns a newly-allocated |RSA| or NULL on 364 OPENSSL_EXPORT RSA *RSA_parse_private_key(CBS *cbs); [all...] |
base.h | 201 typedef struct cbs_st CBS;
|
/external/boringssl/src/crypto/bn/ |
bn_asn1.c | 21 int BN_cbs2unsigned(CBS *cbs, BIGNUM *ret) { 22 CBS child; 23 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) || 45 int BN_cbs2unsigned_buggy(CBS *cbs, BIGNUM *ret) { 46 CBS child; 47 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) ||
|
/external/boringssl/src/crypto/rsa/ |
rsa_asn1.c | 72 static int parse_integer_buggy(CBS *cbs, BIGNUM **out, int buggy) { 79 return BN_cbs2unsigned_buggy(cbs, *out); 81 return BN_cbs2unsigned(cbs, *out); 84 static int parse_integer(CBS *cbs, BIGNUM **out) { 85 return parse_integer_buggy(cbs, out, 0 /* not buggy */); 97 static RSA *parse_public_key(CBS *cbs, int buggy) { 102 CBS child 135 CBS cbs; local 294 CBS cbs; local 372 CBS cbs; local 414 CBS cbs; local [all...] |
/external/boringssl/src/crypto/x509/ |
pkcs7.c | 31 * SignedData blob from |cbs| and sets |*out| to point to the rest of the 38 static int pkcs7_parse_header(uint8_t **der_bytes, CBS *out, CBS *cbs) { 40 CBS in, content_info, content_type, wrapped_signed_data, signed_data; 45 if (!CBS_asn1_ber_to_der(cbs, der_bytes, &der_len)) { 51 CBS_init(&in, CBS_data(cbs), CBS_len(cbs)); 92 int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs) { 236 CBS cbs; local 258 CBS cbs; local [all...] |
/external/boringssl/src/ssl/ |
ssl_asn1.c | 405 * explicitly tagged with |tag| from |cbs| and saves it in |*out|. On 410 static int SSL_SESSION_parse_string(CBS *cbs, char **out, unsigned tag) { 411 CBS value; 413 if (!CBS_get_optional_asn1_octet_string(cbs, &value, &present, tag)) { 434 * explicitly tagged with |tag| from |cbs| and stows it in |*out_ptr| 439 static int SSL_SESSION_parse_octet_string(CBS *cbs, uint8_t **out_ptr, 441 CBS value; 442 if (!CBS_get_optional_asn1_octet_string(cbs, &value, NULL, tag)) 684 CBS cbs; local 704 CBS cbs; local [all...] |
t1_lib.c | 191 static int tls1_check_duplicate_extensions(const CBS *cbs) { 192 CBS extensions = *cbs; 200 CBS extension; 222 extensions = *cbs; 224 CBS extension; 250 CBS client_hello, session_id, cipher_suites, compression_methods, extensions; 268 CBS cookie; 314 CBS extensions [all...] |
s3_clnt.c | 745 CBS server_hello, server_random, session_id; 975 CBS cbs, certificate_list; local 986 CBS_init(&cbs, ssl->init_msg, n); 994 if (!CBS_get_u24_length_prefixed(&cbs, &certificate_list) || 996 CBS_len(&cbs) != 0) { 1003 CBS certificate 1312 CBS cbs; local [all...] |
custom_extensions.c | 131 const CBS *extension) { 158 const CBS *extension) {
|
dtls_record.c | 178 CBS cbs; local 179 CBS_init(&cbs, in, in_len); 185 CBS body; 186 if (!CBS_get_u8(&cbs, &type) || 187 !CBS_get_u16(&cbs, &version) || 188 !CBS_copy_bytes(&cbs, sequence, 8) || 189 !CBS_get_u16_length_prefixed(&cbs, &body) || 210 *out_consumed = in_len - CBS_len(&cbs); 226 *out_consumed = in_len - CBS_len(&cbs); [all...] |
tls_record.c | 176 CBS cbs; local 177 CBS_init(&cbs, in, in_len); 182 if (!CBS_get_u8(&cbs, &type) || 183 !CBS_get_u16(&cbs, &version) || 184 !CBS_get_u16(&cbs, &ciphertext_len)) { 205 CBS body; 206 if (!CBS_get_bytes(&cbs, &body, ciphertext_len)) { 253 *out_consumed = in_len - CBS_len(&cbs);
|
s3_srvr.c | 643 CBS v2_client_hello, cipher_specs, session_id, challenge; 774 CBS client_hello; 776 CBS client_random, session_id, cipher_suites, compression_methods; 858 CBS cookie; [all...] |
internal.h | 482 const CBS *extension); 484 const CBS *extension); [all...] |
/external/boringssl/src/crypto/ecdsa/ |
ecdsa_asn1.c | 111 ECDSA_SIG *ECDSA_SIG_parse(CBS *cbs) { 116 CBS child; 117 if (!CBS_get_asn1(cbs, &child, CBS_ASN1_SEQUENCE) || 129 CBS cbs; local 130 CBS_init(&cbs, in, in_len); 131 ECDSA_SIG *ret = ECDSA_SIG_parse(&cbs); 132 if (ret == NULL || CBS_len(&cbs) != 0) { 204 CBS cbs local [all...] |
/external/boringssl/src/crypto/pkcs8/ |
pkcs8.c | 670 static int PKCS12_handle_content_info(CBS *content_info, unsigned depth, 675 static int PKCS12_handle_content_infos(CBS *content_infos, 680 CBS in; 712 CBS content_info; 736 static int PKCS12_handle_content_info(CBS *content_info, unsigned depth, 738 CBS content_type, wrapped_contents, contents, content_infos; 755 CBS version_bytes, eci, contents_type, ai, encrypted_contents; 805 CBS octet_string_contents; 858 CBS cert_bag, cert_type, wrapped_cert, cert; 902 CBS *ber_in, const char *password) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
tmschema.h | 493 TM_STATE(1,CBS,NORMAL) 494 TM_STATE(2,CBS,HOT) 495 TM_STATE(3,CBS,PUSHED) 496 TM_STATE(4,CBS,DISABLED) 527 TM_STATE(1,CBS,UNCHECKEDNORMAL) 528 TM_STATE(2,CBS,UNCHECKEDHOT) 529 TM_STATE(3,CBS,UNCHECKEDPRESSED) 530 TM_STATE(4,CBS,UNCHECKEDDISABLED) 531 TM_STATE(5,CBS,CHECKEDNORMAL) 532 TM_STATE(6,CBS,CHECKEDHOT [all...] |
/external/boringssl/src/tool/ |
pkcs12.cc | 119 CBS pkcs12;
|