Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 9 of 9) sorted by relevance

/library/
A Dx509write.c47 size_t buflen = 0; in mbedtls_x509_write_set_san_common() local
61 CHECK_OVERFLOW_ADD(buflen, cur->node.san.unstructured_name.len); in mbedtls_x509_write_set_san_common()
62 CHECK_OVERFLOW_ADD(buflen, 4 + 1); in mbedtls_x509_write_set_san_common()
71 CHECK_OVERFLOW_ADD(buflen, 4 + 1 + 4 + 1); in mbedtls_x509_write_set_san_common()
72 CHECK_OVERFLOW_ADD(buflen, chunk->oid.len); in mbedtls_x509_write_set_san_common()
73 CHECK_OVERFLOW_ADD(buflen, chunk->val.len); in mbedtls_x509_write_set_san_common()
76 CHECK_OVERFLOW_ADD(buflen, 4 + 1); in mbedtls_x509_write_set_san_common()
86 CHECK_OVERFLOW_ADD(buflen, 4 + 1); in mbedtls_x509_write_set_san_common()
89 buf = mbedtls_calloc(1, buflen); in mbedtls_x509_write_set_san_common()
93 p = buf + buflen; in mbedtls_x509_write_set_san_common()
[all …]
A Dx509_csr.c280 if (csr == NULL || buf == NULL || buflen == 0) { in mbedtls_x509_csr_parse_der_internal()
289 p = mbedtls_calloc(1, len = buflen); in mbedtls_x509_csr_parse_der_internal()
295 memcpy(p, buf, buflen); in mbedtls_x509_csr_parse_der_internal()
434 const unsigned char *buf, size_t buflen) in mbedtls_x509_csr_parse_der() argument
436 return mbedtls_x509_csr_parse_der_internal(csr, buf, buflen, NULL, NULL); in mbedtls_x509_csr_parse_der()
443 const unsigned char *buf, size_t buflen, in mbedtls_x509_csr_parse_der_with_ext_cb() argument
447 return mbedtls_x509_csr_parse_der_internal(csr, buf, buflen, cb, p_ctx); in mbedtls_x509_csr_parse_der_with_ext_cb()
464 if (csr == NULL || buf == NULL || buflen == 0) { in mbedtls_x509_csr_parse()
470 if (buf[buflen - 1] == '\0') { in mbedtls_x509_csr_parse()
487 ret = mbedtls_x509_csr_parse_der(csr, pem.buf, pem.buflen); in mbedtls_x509_csr_parse()
[all …]
A Dx509_crl.c283 const unsigned char *buf, size_t buflen) in mbedtls_x509_crl_parse_der() argument
324 if (buflen == 0) { in mbedtls_x509_crl_parse_der()
328 p = mbedtls_calloc(1, buflen); in mbedtls_x509_crl_parse_der()
333 memcpy(p, buf, buflen); in mbedtls_x509_crl_parse_der()
336 crl->raw.len = buflen; in mbedtls_x509_crl_parse_der()
338 end = p + buflen; in mbedtls_x509_crl_parse_der()
520 if (buflen == 0 || buf[buflen - 1] != '\0') { in mbedtls_x509_crl_parse()
535 buflen -= use_len; in mbedtls_x509_crl_parse()
539 pem.buf, pem.buflen)) != 0) { in mbedtls_x509_crl_parse()
552 while (is_pem && buflen > 1); in mbedtls_x509_crl_parse()
[all …]
A Dmps_reader.c218 mbedtls_mps_size_t *buflen) in mbedtls_mps_reader_get() argument
325 if (buflen != NULL) { in mbedtls_mps_reader_get()
326 *buflen = desired; in mbedtls_mps_reader_get()
353 if (buflen == NULL) { in mbedtls_mps_reader_get()
373 if (buflen != NULL) { in mbedtls_mps_reader_get()
374 *buflen = desired; in mbedtls_mps_reader_get()
A Dpkcs7.c450 static int pkcs7_get_signed_data(unsigned char *buf, size_t buflen, in pkcs7_get_signed_data() argument
454 unsigned char *end = buf + buflen; in pkcs7_get_signed_data()
553 const size_t buflen) in mbedtls_pkcs7_parse_der() argument
565 pkcs7->raw.p = p = mbedtls_calloc(1, buflen); in mbedtls_pkcs7_parse_der()
570 memcpy(p, buf, buflen); in mbedtls_pkcs7_parse_der()
571 pkcs7->raw.len = buflen; in mbedtls_pkcs7_parse_der()
572 end = p + buflen; in mbedtls_pkcs7_parse_der()
592 len = buflen; in mbedtls_pkcs7_parse_der()
A Dx509_crt.c1074 size_t buflen, in x509_crt_parse_der_core() argument
1097 len = buflen; in x509_crt_parse_der_core()
1366 size_t buflen) in mbedtls_x509_crt_parse_der_nocopy() argument
1373 size_t buflen, in mbedtls_x509_crt_parse_der_with_ext_cb() argument
1383 size_t buflen) in mbedtls_x509_crt_parse_der() argument
1394 size_t buflen) in mbedtls_x509_crt_parse() argument
1413 if (buflen != 0 && buf[buflen - 1] == '\0' && in mbedtls_x509_crt_parse()
1422 return mbedtls_x509_crt_parse_der(chain, buf, buflen); in mbedtls_x509_crt_parse()
1431 while (buflen > 1) { in mbedtls_x509_crt_parse()
1445 buflen -= use_len; in mbedtls_x509_crt_parse()
[all …]
A Dmps_reader.h280 mbedtls_mps_size_t buflen);
343 mbedtls_mps_size_t *buflen);
A Dssl_tls13_server.c1933 size_t buflen = 0; in ssl_tls13_process_client_hello() local
1940 &buf, &buflen)); in ssl_tls13_process_client_hello()
1943 buf + buflen)); in ssl_tls13_process_client_hello()
A Dssl_msg.c221 size_t buflen) in mbedtls_ssl_check_record() argument
225 MBEDTLS_SSL_DEBUG_BUF(3, "record buffer", buf, buflen); in mbedtls_ssl_check_record()
238 ret = ssl_parse_record_header(ssl, buf, buflen, &rec); in mbedtls_ssl_check_record()
257 mbedtls_platform_zeroize(buf, buflen); in mbedtls_ssl_check_record()

Completed in 46 milliseconds