Lines Matching refs:entropy
2 #include "mbedtls/entropy.h"
11 * Dummy entropy source
40 * Ability to clear entropy sources to allow testing with just predefined
41 * entropy sources. This function or tests depending on it might break if there
42 * are internal changes to how entropy sources are registered.
310 unsigned char entropy[MBEDTLS_ENTROPY_BLOCK_SIZE];
317 memset( entropy, 0, MBEDTLS_ENTROPY_BLOCK_SIZE );
338 // Do an entropy run
339 TEST_ASSERT( mbedtls_entropy_func( &ctx, entropy, sizeof( entropy ) ) == 0 );
341 // Determine what should have happened with manual entropy internal logic
360 // Second run for actual entropy (triggers mbedtls_entropy_update_nv_seed)
372 // Check result of both NV file and entropy received with the manual calculations
374 TEST_ASSERT( memcmp( check_entropy, entropy, MBEDTLS_ENTROPY_BLOCK_SIZE ) == 0 );