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.
332 /* If the NV seed functionality is enabled, there are two entropy
377 /* If the NV seed functionality is enabled, there are two entropy
442 #error "Unsupported entropy accumulator"
452 unsigned char entropy[MBEDTLS_ENTROPY_BLOCK_SIZE];
458 memset(entropy, 0, MBEDTLS_ENTROPY_BLOCK_SIZE);
479 // Do an entropy run
480 TEST_ASSERT(mbedtls_entropy_func(&ctx, entropy, sizeof(entropy)) == 0);
481 // Determine what should have happened with manual entropy internal logic
502 // Second run for actual entropy (triggers mbedtls_entropy_update_nv_seed)
517 // Check result of both NV file and entropy received with the manual calculations
519 TEST_ASSERT(memcmp(check_entropy, entropy, MBEDTLS_ENTROPY_BLOCK_SIZE) == 0);