Lines Matching refs:entropy
2 #include "mbedtls/entropy.h"
20 * Dummy entropy source
47 * Ability to clear entropy sources to allow testing with just predefined
48 * entropy sources. This function or tests depending on it might break if there
49 * are internal changes to how entropy sources are registered.
353 /* If the NV seed functionality is enabled, there are two entropy
401 /* If the NV seed functionality is enabled, there are two entropy
467 #error "Unsupported entropy accumulator"
477 unsigned char entropy[MBEDTLS_ENTROPY_BLOCK_SIZE];
483 memset(entropy, 0, MBEDTLS_ENTROPY_BLOCK_SIZE);
506 // Do an entropy run
507 TEST_ASSERT(mbedtls_entropy_func(&ctx, entropy, sizeof(entropy)) == 0);
508 // Determine what should have happened with manual entropy internal logic
529 // Second run for actual entropy (triggers mbedtls_entropy_update_nv_seed)
544 // Check result of both NV file and entropy received with the manual calculations
546 TEST_ASSERT(memcmp(check_entropy, entropy, MBEDTLS_ENTROPY_BLOCK_SIZE) == 0);