Searched refs:tmp_len (Results 1 – 4 of 4) sorted by relevance
/mbedtls-3.6.0/library/ |
D | x509write_crt.c | 96 size_t tmp_len; in mbedtls_x509write_crt_set_serial() local 99 tmp_len = mbedtls_mpi_size(serial); in mbedtls_x509write_crt_set_serial() 100 if (tmp_len > MBEDTLS_X509_RFC5280_MAX_SERIAL_LEN) { in mbedtls_x509write_crt_set_serial() 104 ctx->serial_len = tmp_len; in mbedtls_x509write_crt_set_serial() 106 ret = mbedtls_mpi_write_binary(serial, ctx->serial, tmp_len); in mbedtls_x509write_crt_set_serial()
|
D | pkwrite.c | 576 size_t tmp_len = 0; in pk_write_rsa_der() local 578 if (psa_export_key(pk->priv_id, tmp, sizeof(tmp), &tmp_len) != PSA_SUCCESS) { in pk_write_rsa_der() 581 *p -= tmp_len; in pk_write_rsa_der() 582 memcpy(*p, tmp, tmp_len); in pk_write_rsa_der() 583 len += tmp_len; in pk_write_rsa_der()
|
D | ssl_tls.c | 6158 size_t tmp_len = 0; in tls_prf_generic() local 6172 tmp_len = md_len + strlen(label) + rlen; in tls_prf_generic() 6173 tmp = mbedtls_calloc(1, tmp_len); in tls_prf_generic() 6242 mbedtls_platform_zeroize(tmp, tmp_len); in tls_prf_generic()
|
/mbedtls-3.6.0/tests/suites/ |
D | test_suite_mps.function | 150 mbedtls_mps_size_t tmp_len; 168 TEST_ASSERT(mbedtls_mps_reader_get(&rd, 30, &tmp, &tmp_len) == 0); 169 TEST_MEMORY_COMPARE(tmp, tmp_len, buf + 80, 20); 187 mbedtls_mps_size_t tmp_len; 208 TEST_ASSERT(mbedtls_mps_reader_get(&rd, 30, &tmp, &tmp_len) == 0); 209 TEST_MEMORY_COMPARE(tmp, tmp_len, bufA + 80, 20); 276 mbedtls_mps_size_t tmp_len; 297 TEST_ASSERT(mbedtls_mps_reader_get(&rd, 50, &tmp, &tmp_len) == 0); 298 TEST_MEMORY_COMPARE(tmp, tmp_len, buf + 50, 50); 683 mbedtls_mps_size_t tmp_len; [all …]
|