Home
last modified time | relevance | path

Searched refs:MBEDTLS_ENTROPY_BLOCK_SIZE (Results 1 – 14 of 14) sorted by relevance

/mbedtls-latest/tests/suites/
Dtest_suite_entropy.function68 static unsigned char buffer_seed[MBEDTLS_ENTROPY_BLOCK_SIZE];
72 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
76 memcpy(buf, buffer_seed, MBEDTLS_ENTROPY_BLOCK_SIZE);
82 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
86 memcpy(buffer_seed, buf, MBEDTLS_ENTROPY_BLOCK_SIZE);
99 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
107 if (fwrite(buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f) !=
108 MBEDTLS_ENTROPY_BLOCK_SIZE) {
123 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
131 if (fread(buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f) !=
[all …]
Dtest_suite_psa_crypto_init.data38 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:0:PSA_ERROR_INSUFFICIENT_ENTROPY
41 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:-1:PSA_ERROR_IN…
45 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:ENTROPY_NONCE_LEN - 1:-1:-1:-1:PSA_ERROR_INSUFFICIEN…
49 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
53 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:1:-1:-1:PSA_SUCCESS
57 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:MBEDTLS_ENTROPY_BLOCK…
60 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK…
66 entropy_from_nv_seed:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
Dtest_suite_entropy.data56 entropy_calls:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:…
59 …ropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:1
62 …alls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
65 …ropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:1:MBEDTLS_ENTROPY_BLOCK_SIZE
68 …NTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_BLOCK_SIZE+1:MBEDTLS_ENTROPY_BLOC…
71 …OPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:(MBEDTLS_ENTROPY_BL…
Dtest_suite_psa_crypto_entropy.data40 PSA validate entropy injection: bad, too small using MBEDTLS_ENTROPY_BLOCK_SIZE
41 validate_entropy_seed_injection:MBEDTLS_ENTROPY_BLOCK_SIZE-1:PSA_ERROR_INVALID_ARGUMENT:MBEDTLS_PSA…
Dtest_suite_psa_crypto_init.function29 MAX(MBEDTLS_ENTROPY_MIN_PLATFORM, MBEDTLS_ENTROPY_BLOCK_SIZE)
114 MBEDTLS_ENTROPY_BLOCK_SIZE,
Dtest_suite_psa_crypto_entropy.function12 MBEDTLS_ENTROPY_BLOCK_SIZE)
/mbedtls-latest/library/
Dentropy.c55 MBEDTLS_ENTROPY_BLOCK_SIZE, in mbedtls_entropy_init()
128 unsigned char tmp[MBEDTLS_ENTROPY_BLOCK_SIZE]; in entropy_update()
133 if (use_len > MBEDTLS_ENTROPY_BLOCK_SIZE) { in entropy_update()
139 use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in entropy_update()
275 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_func()
277 if (len > MBEDTLS_ENTROPY_BLOCK_SIZE) { in mbedtls_entropy_func()
322 } while (!thresholds_reached || strong_size < MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_entropy_func()
324 memset(buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_entropy_func()
350 MBEDTLS_ENTROPY_BLOCK_SIZE)) != 0) { in mbedtls_entropy_func()
358 buf, MBEDTLS_ENTROPY_BLOCK_SIZE, buf)) != 0) { in mbedtls_entropy_func()
[all …]
Dentropy_poll.c210 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_nv_seed_poll()
211 size_t use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in mbedtls_nv_seed_poll()
214 memset(buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_nv_seed_poll()
216 if (mbedtls_nv_seed_read(buf, MBEDTLS_ENTROPY_BLOCK_SIZE) < 0) { in mbedtls_nv_seed_poll()
Dpsa_crypto.c7798 MBEDTLS_ENTROPY_BLOCK_SIZE,
7863 (seed_size < MBEDTLS_ENTROPY_BLOCK_SIZE)) ||
/mbedtls-latest/programs/test/
Dselftest.c218 unsigned char seed_value[MBEDTLS_ENTROPY_BLOCK_SIZE]; in create_entropy_seed_file()
223 MBEDTLS_ENTROPY_BLOCK_SIZE); in create_entropy_seed_file()
230 MBEDTLS_ENTROPY_BLOCK_SIZE, in create_entropy_seed_file()
236 if (MBEDTLS_ENTROPY_BLOCK_SIZE != output_len) { in create_entropy_seed_file()
240 mbedtls_platform_std_nv_seed_write(seed_value, MBEDTLS_ENTROPY_BLOCK_SIZE); in create_entropy_seed_file()
/mbedtls-latest/include/mbedtls/
Dentropy.h24 #define MBEDTLS_ENTROPY_BLOCK_SIZE 64 /**< Block size of entropy accumulator (SHA-512) */ macro
29 #define MBEDTLS_ENTROPY_BLOCK_SIZE 32 /**< Block size of entropy accumulator (SHA-256) */ macro
/mbedtls-latest/programs/random/
Dgen_entropy.c33 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in main()
/mbedtls-latest/tests/src/
Dpsa_crypto_helpers.c191 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_test_inject_entropy_restore()
/mbedtls-latest/
DChangeLog2735 MBEDTLS_ENTROPY_BLOCK_SIZE bytes or more from strong sources. In the