Home
last modified time | relevance | path

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

/mbedtls-3.6.0/library/
Dmemory_buffer_alloc.c218 } else if (len > (size_t) -MBEDTLS_MEMORY_ALIGN_MULTIPLE) { in buffer_alloc_calloc()
222 if (len % MBEDTLS_MEMORY_ALIGN_MULTIPLE) { in buffer_alloc_calloc()
223 len -= len % MBEDTLS_MEMORY_ALIGN_MULTIPLE; in buffer_alloc_calloc()
224 len += MBEDTLS_MEMORY_ALIGN_MULTIPLE; in buffer_alloc_calloc()
256 MBEDTLS_MEMORY_ALIGN_MULTIPLE) { in buffer_alloc_calloc()
574 if (len < sizeof(memory_header) + MBEDTLS_MEMORY_ALIGN_MULTIPLE) { in mbedtls_memory_buffer_alloc_init()
576 } else if ((size_t) buf % MBEDTLS_MEMORY_ALIGN_MULTIPLE) { in mbedtls_memory_buffer_alloc_init()
578 len -= MBEDTLS_MEMORY_ALIGN_MULTIPLE in mbedtls_memory_buffer_alloc_init()
579 - (size_t) buf % MBEDTLS_MEMORY_ALIGN_MULTIPLE; in mbedtls_memory_buffer_alloc_init()
580 buf += MBEDTLS_MEMORY_ALIGN_MULTIPLE in mbedtls_memory_buffer_alloc_init()
[all …]
/mbedtls-3.6.0/include/mbedtls/
Dmemory_buffer_alloc.h25 #if !defined(MBEDTLS_MEMORY_ALIGN_MULTIPLE)
26 #define MBEDTLS_MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */ macro
/mbedtls-3.6.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.6.0/programs/test/
Dquery_config.c2367 #if defined(MBEDTLS_MEMORY_ALIGN_MULTIPLE) in query_config()
2370 MACRO_EXPANSION_TO_STR( MBEDTLS_MEMORY_ALIGN_MULTIPLE ); in query_config()
4589 #if defined(MBEDTLS_MEMORY_ALIGN_MULTIPLE) in list_config()
4590 OUTPUT_MACRO_NAME_VALUE(MBEDTLS_MEMORY_ALIGN_MULTIPLE); in list_config()