Lines Matching refs:entropy
2 #include "mbedtls/entropy.h"
22 * Dummy entropy source
50 * Ability to clear entropy sources to allow testing with just predefined
51 * entropy sources. This function or tests depending on it might break if there
52 * are internal changes to how entropy sources are registered.
323 /* If the NV seed functionality is enabled, there are two entropy
371 /* If the NV seed functionality is enabled, there are two entropy
438 #error "Unsupported entropy accumulator"
448 unsigned char entropy[MBEDTLS_ENTROPY_BLOCK_SIZE];
454 memset( entropy, 0, MBEDTLS_ENTROPY_BLOCK_SIZE );
475 // Do an entropy run
476 TEST_ASSERT( mbedtls_entropy_func( &ctx, entropy, sizeof( entropy ) ) == 0 );
477 // Determine what should have happened with manual entropy internal logic
498 // Second run for actual entropy (triggers mbedtls_entropy_update_nv_seed)
513 // Check result of both NV file and entropy received with the manual calculations
515 TEST_ASSERT( memcmp( check_entropy, entropy, MBEDTLS_ENTROPY_BLOCK_SIZE ) == 0 );