/external/boringssl/src/crypto/bn_extra/ |
bn_asn1.c | 24 CBS_len(&child) == 0) { 36 CBS_len(&child) > 1 && 42 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; 48 CBS_len(&child) == 0) { 58 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL;
|
/external/boringssl/src/crypto/bytestring/ |
ber.c | 66 CBS_init(&in, CBS_data(orig_in), CBS_len(orig_in)); 69 while (CBS_len(&in) > 0) { 77 if (CBS_len(&contents) == header_len && 103 return header_len == 2 && CBS_len(contents) == 2 && 122 while (CBS_len(in) > 0) { 158 if (CBS_len(&contents) == header_len && header_len > 0 && 182 CBS_len(&contents))) { 211 if (!CBB_init(&cbb, CBS_len(in)) || 238 if (!CBB_init(&result, CBS_len(in)) || 243 while (CBS_len(&child) > 0) [all...] |
cbs.c | 51 size_t CBS_len(const CBS *cbs) { 324 if (CBS_len(cbs) < 1) { 338 size_t len = CBS_len(&bytes); 393 CBS_len(&child) != 0) { 414 CBS_len(&child) != 0) { 434 CBS_len(&child2) != 1 || 435 CBS_len(&child) != 0) { 486 return byte_num < CBS_len(cbs) &&
|
bytestring_test.cc | 40 EXPECT_EQ(3u, CBS_len(&data)); 42 EXPECT_EQ(2u, CBS_len(&data)); 44 EXPECT_EQ(0u, CBS_len(&data)); 81 EXPECT_EQ(1u, CBS_len(&prefixed)); 85 EXPECT_EQ(2u, CBS_len(&prefixed)); 89 EXPECT_EQ(3u, CBS_len(&prefixed)); 130 EXPECT_EQ(Bytes("\x01\x02"), Bytes(CBS_data(&contents), CBS_len(&contents))); 163 EXPECT_EQ(0u, CBS_len(&contents)); 165 EXPECT_EQ(0u, CBS_len(&contents)); 176 Bytes(CBS_data(&contents), CBS_len(&contents))) [all...] |
/external/boringssl/src/crypto/pkcs8/ |
p5_pbev2.c | 213 CBS_len(param) != 0 || 216 CBS_len(&pbe_param) != 0 || 240 CBS_len(&kdf) != 0 || 267 if (CBS_len(&pbkdf2_params) != 0) { 271 CBS_len(&pbkdf2_params) != 0) { 286 CBS_len(&null) != 0 || 287 CBS_len(&alg_id) != 0) { 299 CBS_len(&enc_scheme) != 0) { 305 pass_len, CBS_data(&salt), CBS_len(&salt), 306 CBS_data(&iv), CBS_len(&iv), 0 /* decrypt */) [all...] |
pkcs8_x509.c | 112 if (ret == NULL || CBS_len(&cbs) != 0) { 174 if (pkey == NULL || CBS_len(&cbs) != 0) { 259 CBS_init(&in, CBS_data(sequence), CBS_len(sequence)); 264 CBS_len(&in) != 0) { 269 while (CBS_len(&child) > 0) { 326 if (CBS_len(&wrapped_value) != 0) { 354 if (CBS_len(&cert) > LONG_MAX) { 360 X509 *x509 = d2i_X509(NULL, &inp, (long)CBS_len(&cert)); 366 if (inp != CBS_data(&cert) + CBS_len(&cert)) { 403 CBS_len(content_info) != 0) [all...] |
/external/boringssl/src/crypto/evp/ |
p_rsa_asn1.c | 109 CBS_len(&null) != 0 || 110 CBS_len(params) != 0) { 122 if (rsa == NULL || CBS_len(key) != 0) { 159 CBS_len(&null) != 0 || 160 CBS_len(params) != 0) { 166 if (rsa == NULL || CBS_len(key) != 0) {
|
p_dsa_asn1.c | 72 if (CBS_len(params) == 0) { 79 if (dsa == NULL || CBS_len(params) != 0) { 91 CBS_len(key) != 0) { 133 if (dsa == NULL || CBS_len(params) != 0) { 146 CBS_len(key) != 0) {
|
p_ed25519_asn1.c | 67 if (CBS_len(params) != 0 || 68 CBS_len(key) != 32) { 108 if (CBS_len(params) != 0 || 110 CBS_len(key) != 0 || 111 CBS_len(&inner) != 32) {
|
p_ec_asn1.c | 99 if (group == NULL || CBS_len(params) != 0) { 111 !EC_POINT_oct2point(group, point, CBS_data(key), CBS_len(key), NULL) || 146 if (group == NULL || CBS_len(params) != 0) { 154 if (ec_key == NULL || CBS_len(key) != 0) {
|
/external/boringssl/src/ssl/ |
t1_lib.cc | 154 while (CBS_len(&extensions) > 0) { 188 assert(CBS_len(&extensions) == 0); 217 CBS_len(&session_id) > SSL_MAX_SSL_SESSION_ID_LENGTH) { 222 out->random_len = CBS_len(&random); 224 out->session_id_len = CBS_len(&session_id); 230 CBS_len(&cookie) > DTLS1_COOKIE_LENGTH) { 237 CBS_len(&cipher_suites) < 2 || (CBS_len(&cipher_suites) & 1) != 0 || 239 CBS_len(&compression_methods) < 1) { 244 out->cipher_suites_len = CBS_len(&cipher_suites) [all...] |
ssl_asn1.cc | 529 CBS_len(&value) > max_out) { 533 OPENSSL_memcpy(out, CBS_data(&value), CBS_len(&value)); 534 *out_len = (uint8_t)CBS_len(&value); 606 CBS_len(&cipher) != 0) { 618 CBS_len(&session_id) > SSL3_MAX_SSL_SESSION_ID_LENGTH || 620 CBS_len(&master_key) > SSL_MAX_MASTER_KEY_LENGTH) { 624 OPENSSL_memcpy(ret->session_id, CBS_data(&session_id), CBS_len(&session_id)); 625 ret->session_id_length = CBS_len(&session_id); 626 OPENSSL_memcpy(ret->master_key, CBS_data(&master_key), CBS_len(&master_key)); 627 ret->master_key_length = CBS_len(&master_key) [all...] |
dtls_record.cc | 195 CBS_len(&body) > SSL3_RT_MAX_ENCRYPTED_LENGTH) { 211 *out_consumed = in_len - CBS_len(&cbs); 217 (uint8_t *)CBS_data(&body), CBS_len(&body))) { 225 *out_consumed = in_len - CBS_len(&cbs); 228 *out_consumed = in_len - CBS_len(&cbs); 231 if (CBS_len(out) > SSL3_RT_MAX_PLAIN_LENGTH) { 243 return ssl_process_alert(ssl, out_alert, CBS_data(out), CBS_len(out));
|
tls13_client.cc | 64 CBS_len(&extensions) == 0 || 65 CBS_len(&cbs) != 0) { 89 CBS_len(&cookie_value) == 0 || 90 CBS_len(&cookie) != 0) { 103 if (!CBS_get_u16(&key_share, &group_id) || CBS_len(&key_share) != 0) { 182 CBS_len(&cbs) != 0) { 377 if (CBS_len(&cbs) != 0) { 442 CBS_len(&context) != 0 || 444 CBS_len(&supported_signature_algorithms) == 0 || 462 CBS_len(&cbs) != 0) [all...] |
ssl_cert.cc | 446 while (CBS_len(&certificate_list) > 0) { 449 CBS_len(&certificate) == 0) { 464 SHA256(CBS_data(&certificate), CBS_len(&certificate), out_leaf_sha256); 542 CBS_len(&buf) != 0 || 660 while (CBS_len(&extensions) > 0) { 667 CBS_len(&extension) != 0) { 672 if (CBS_len(&oid) != sizeof(kKeyUsageOID) || 680 CBS_len(&contents) != 0) { 724 while (CBS_len(&child) > 0) { 879 CRYPTO_BUFFER_new(CBS_data(&sct_list), CBS_len(&sct_list), NULL) [all...] |
tls13_both.cc | 191 CBS_len(&context) != 0) { 215 while (CBS_len(&certificate_list) > 0) { 219 CBS_len(&certificate) == 0) { 241 SHA256(CBS_data(&certificate), CBS_len(&certificate), 286 CBS_len(&ocsp_response) == 0 || 287 CBS_len(&status_request) != 0) { 323 if (CBS_len(&cbs) != 0) { 386 CBS_len(&cbs) != 0) { 410 ssl_public_key_verify(ssl, CBS_data(&signature), CBS_len(&signature), 607 CBS_len(&cbs) != 0 | [all...] |
handshake_client.cc | 794 CBS_len(&cookie) > sizeof(ssl->d1->cookie) || 795 CBS_len(&hello_verify_request) != 0) { 801 OPENSSL_memcpy(ssl->d1->cookie, CBS_data(&cookie), CBS_len(&cookie)); 802 ssl->d1->cookie_len = CBS_len(&cookie); 843 if (CBS_len(&server_hello) == 0) { 849 CBS_len(&server_hello) != 0) { 872 CBS_len(&supported_versions) != 0)) { 946 CBS_len(&session_id) > SSL3_SESSION_ID_SIZE || [all...] |
tls_record.cc | 261 *out_consumed = in_len - CBS_len(&cbs); 274 CBS_len(&body))) { 313 if (CBS_len(out) > SSL3_RT_MAX_PLAIN_LENGTH) { 320 if (CBS_len(out) == 0) { 335 if (CBS_len(out) == 2 && 342 return ssl_process_alert(ssl, out_alert, CBS_data(out), CBS_len(out));
|
s3_both.cc | 596 CBS_len(&v2_client_hello))) { 601 CBS_data(&v2_client_hello), CBS_len(&v2_client_hello)); 614 CBS_len(&v2_client_hello) != 0) { 624 size_t rand_len = CBS_len(&challenge); 637 CBS_len(&cipher_specs) / 3 * 2 + 657 while (CBS_len(&cipher_specs) > 0) { 762 return SSL_TRANSCRIPT_update(&hs->transcript, CBS_data(&cbs), CBS_len(&cbs)); 793 while (CBS_len(©) != 0) {
|
/external/boringssl/src/crypto/digest_extra/ |
digest_extra.c | 143 if (CBS_len(cbs) == kMDOIDs[i].oid_len && 182 if (CBS_len(&algorithm) > 0) { 185 CBS_len(¶m) != 0 || 186 CBS_len(&algorithm) != 0) {
|
/external/boringssl/src/crypto/ec_extra/ |
ec_asn1.c | 110 if (CBS_len(&child) != 0) { 130 BN_bin2bn(CBS_data(&private_key), CBS_len(&private_key), NULL); 152 CBS_len(&public_key) == 0 || 154 CBS_len(&public_key), NULL) || 155 CBS_len(&child) != 0) { 174 if (CBS_len(&ec_private_key) != 0) { 248 if (CBS_len(cbs) == 0) { 253 (byte == 0 && CBS_len(cbs) > 1 && (CBS_data(cbs)[1] & 0x80) == 0)) { 275 CBS_len(&field_type) != sizeof(kPrimeField) || 279 CBS_len(&field_id) != 0 | [all...] |
/external/boringssl/src/crypto/pkcs7/ |
pkcs7.c | 56 CBS_init(&in, CBS_data(cbs), CBS_len(cbs)); 86 CBS_init(out, CBS_data(&signed_data), CBS_len(&signed_data)); 113 while (CBS_len(&certificates) > 0) {
|
pkcs7_x509.c | 91 while (CBS_len(&crls) > 0) { 100 if (CBS_len(&crl_data) > LONG_MAX) { 104 crl = d2i_X509_CRL(NULL, &inp, (long)CBS_len(&crl_data)); 109 assert(inp == CBS_data(&crl_data) + CBS_len(&crl_data));
|
/external/boringssl/src/crypto/dh/ |
dh_asn1.c | 100 if (CBS_len(&child) != 0) { 108 if (CBS_len(&child) != 0) {
|
/external/boringssl/src/crypto/dsa/ |
dsa_asn1.c | 94 CBS_len(&child) != 0) { 125 CBS_len(&child) != 0) { 157 CBS_len(&child) != 0) { 202 CBS_len(&child) != 0) {
|