Home
last modified time | relevance | path

Searched refs:MBEDTLS_MEMORY_ALIGN_MULTIPLE (Results 1 – 4 of 4) sorted by relevance

/mbedtls-3.5.0/library/
Dmemory_buffer_alloc.c230 } else if (len > (size_t) -MBEDTLS_MEMORY_ALIGN_MULTIPLE) { in buffer_alloc_calloc()
234 if (len % MBEDTLS_MEMORY_ALIGN_MULTIPLE) { in buffer_alloc_calloc()
235 len -= len % MBEDTLS_MEMORY_ALIGN_MULTIPLE; in buffer_alloc_calloc()
236 len += MBEDTLS_MEMORY_ALIGN_MULTIPLE; in buffer_alloc_calloc()
268 MBEDTLS_MEMORY_ALIGN_MULTIPLE) { in buffer_alloc_calloc()
586 if (len < sizeof(memory_header) + MBEDTLS_MEMORY_ALIGN_MULTIPLE) { in mbedtls_memory_buffer_alloc_init()
588 } else if ((size_t) buf % MBEDTLS_MEMORY_ALIGN_MULTIPLE) { in mbedtls_memory_buffer_alloc_init()
590 len -= MBEDTLS_MEMORY_ALIGN_MULTIPLE in mbedtls_memory_buffer_alloc_init()
591 - (size_t) buf % MBEDTLS_MEMORY_ALIGN_MULTIPLE; in mbedtls_memory_buffer_alloc_init()
592 buf += MBEDTLS_MEMORY_ALIGN_MULTIPLE in mbedtls_memory_buffer_alloc_init()
[all …]
/mbedtls-3.5.0/include/mbedtls/
Dmemory_buffer_alloc.h37 #if !defined(MBEDTLS_MEMORY_ALIGN_MULTIPLE)
38 #define MBEDTLS_MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */ macro
/mbedtls-3.5.0/tests/suites/
Dtest_suite_memory_buffer_alloc.function19 if ((size_t) p % MBEDTLS_MEMORY_ALIGN_MULTIPLE != 0) {
255 for (i = 1; i < MBEDTLS_MEMORY_ALIGN_MULTIPLE; i++) {
257 (size_t) -(MBEDTLS_MEMORY_ALIGN_MULTIPLE - i)) == NULL);
/mbedtls-3.5.0/programs/test/
Dquery_config.c2315 #if defined(MBEDTLS_MEMORY_ALIGN_MULTIPLE) in query_config()
2318 MACRO_EXPANSION_TO_STR( MBEDTLS_MEMORY_ALIGN_MULTIPLE ); in query_config()
4321 #if defined(MBEDTLS_MEMORY_ALIGN_MULTIPLE) in list_config()
4322 OUTPUT_MACRO_NAME_VALUE(MBEDTLS_MEMORY_ALIGN_MULTIPLE); in list_config()