Home
last modified time | relevance | path

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

12

/aosp_15_r20/external/mbedtls/tests/suites/
H A Dtest_suite_entropy.function66 static unsigned char buffer_seed[MBEDTLS_ENTROPY_BLOCK_SIZE];
70 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
74 memcpy(buf, buffer_seed, MBEDTLS_ENTROPY_BLOCK_SIZE);
80 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
84 memcpy(buffer_seed, buf, MBEDTLS_ENTROPY_BLOCK_SIZE);
95 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
103 if (fwrite(buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f) !=
104 MBEDTLS_ENTROPY_BLOCK_SIZE) {
117 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
125 if (fread(buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f) !=
[all …]
H A Dtest_suite_psa_crypto_init.data35 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:0:PSA_ERROR_INSUFFICIENT_ENTROPY
38 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:-1:-1:-1:PSA_ERROR_IN…
42 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:ENTROPY_NONCE_LEN - 1:-1:-1:-1:PSA_ERROR_INSUFFICIEN…
46 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:0:0:MBEDTLS_ENTROPY_BLOCK_SIZE:PSA_SUCCESS
50 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:1:-1:-1:PSA_SUCCESS
54 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:MBEDTLS_ENTROPY_BLOCK…
57 fake_entropy_source:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK_SIZE:0:MBEDTLS_ENTROPY_BLOCK…
63 entropy_from_nv_seed:MBEDTLS_ENTROPY_BLOCK_SIZE - 1:PSA_ERROR_INSUFFICIENT_ENTROPY
H A 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…
H A 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…
H A Dtest_suite_psa_crypto_init.function11 MAX(MBEDTLS_ENTROPY_MIN_PLATFORM, MBEDTLS_ENTROPY_BLOCK_SIZE)
96 MBEDTLS_ENTROPY_BLOCK_SIZE,
H A Dtest_suite_psa_crypto_entropy.function12 MBEDTLS_ENTROPY_BLOCK_SIZE)
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/suites/
H A Dtest_suite_entropy.function66 static unsigned char buffer_seed[MBEDTLS_ENTROPY_BLOCK_SIZE];
70 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
74 memcpy(buf, buffer_seed, MBEDTLS_ENTROPY_BLOCK_SIZE);
80 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
84 memcpy(buffer_seed, buf, MBEDTLS_ENTROPY_BLOCK_SIZE);
95 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
103 if (fwrite(buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f) !=
104 MBEDTLS_ENTROPY_BLOCK_SIZE) {
118 if (buf_len != MBEDTLS_ENTROPY_BLOCK_SIZE) {
126 if (fread(buf, 1, MBEDTLS_ENTROPY_BLOCK_SIZE, f) !=
[all …]
H A 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
H A 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…
H A 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…
H A Dtest_suite_psa_crypto_init.function12 MAX(MBEDTLS_ENTROPY_MIN_PLATFORM, MBEDTLS_ENTROPY_BLOCK_SIZE)
97 MBEDTLS_ENTROPY_BLOCK_SIZE,
H A Dtest_suite_psa_crypto_entropy.function12 MBEDTLS_ENTROPY_BLOCK_SIZE)
/aosp_15_r20/external/mbedtls/library/
H A Dentropy.c55 MBEDTLS_ENTROPY_BLOCK_SIZE, in mbedtls_entropy_init()
124 unsigned char tmp[MBEDTLS_ENTROPY_BLOCK_SIZE]; in entropy_update()
129 if (use_len > MBEDTLS_ENTROPY_BLOCK_SIZE) { in entropy_update()
135 use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in entropy_update()
271 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_func()
273 if (len > MBEDTLS_ENTROPY_BLOCK_SIZE) { in mbedtls_entropy_func()
318 } while (!thresholds_reached || strong_size < MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_entropy_func()
320 memset(buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_entropy_func()
346 MBEDTLS_ENTROPY_BLOCK_SIZE)) != 0) { in mbedtls_entropy_func()
354 buf, MBEDTLS_ENTROPY_BLOCK_SIZE, buf)) != 0) { in mbedtls_entropy_func()
[all …]
H A Dentropy_poll.c208 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_nv_seed_poll()
209 size_t use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in mbedtls_nv_seed_poll()
212 memset(buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_nv_seed_poll()
214 if (mbedtls_nv_seed_read(buf, MBEDTLS_ENTROPY_BLOCK_SIZE) < 0) { in mbedtls_nv_seed_poll()
H A Dpsa_crypto.c7319 MBEDTLS_ENTROPY_BLOCK_SIZE, in mbedtls_psa_random_init()
7437 (seed_size < MBEDTLS_ENTROPY_BLOCK_SIZE)) || in mbedtls_psa_inject_entropy()
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/library/
H A Dentropy.c55 MBEDTLS_ENTROPY_BLOCK_SIZE, in mbedtls_entropy_init()
124 unsigned char tmp[MBEDTLS_ENTROPY_BLOCK_SIZE]; in entropy_update()
129 if (use_len > MBEDTLS_ENTROPY_BLOCK_SIZE) { in entropy_update()
135 use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in entropy_update()
271 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_entropy_func()
273 if (len > MBEDTLS_ENTROPY_BLOCK_SIZE) { in mbedtls_entropy_func()
318 } while (!thresholds_reached || strong_size < MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_entropy_func()
320 memset(buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_entropy_func()
346 MBEDTLS_ENTROPY_BLOCK_SIZE)) != 0) { in mbedtls_entropy_func()
354 buf, MBEDTLS_ENTROPY_BLOCK_SIZE, buf)) != 0) { in mbedtls_entropy_func()
[all …]
H A Dentropy_poll.c208 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_nv_seed_poll()
209 size_t use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in mbedtls_nv_seed_poll()
212 memset(buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE); in mbedtls_nv_seed_poll()
214 if (mbedtls_nv_seed_read(buf, MBEDTLS_ENTROPY_BLOCK_SIZE) < 0) { in mbedtls_nv_seed_poll()
/aosp_15_r20/external/mbedtls/programs/test/
H A Dselftest.c217 unsigned char seed_value[MBEDTLS_ENTROPY_BLOCK_SIZE]; in create_entropy_seed_file()
222 MBEDTLS_ENTROPY_BLOCK_SIZE); in create_entropy_seed_file()
229 MBEDTLS_ENTROPY_BLOCK_SIZE, in create_entropy_seed_file()
235 if (MBEDTLS_ENTROPY_BLOCK_SIZE != output_len) { in create_entropy_seed_file()
239 mbedtls_platform_std_nv_seed_write(seed_value, MBEDTLS_ENTROPY_BLOCK_SIZE); in create_entropy_seed_file()
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/programs/test/
H A 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()
/aosp_15_r20/external/mbedtls/include/mbedtls/
H A Dentropy.h23 #define MBEDTLS_ENTROPY_BLOCK_SIZE 64 /**< Block size of entropy accumulator (SHA-512) */ macro
28 #define MBEDTLS_ENTROPY_BLOCK_SIZE 32 /**< Block size of entropy accumulator (SHA-256) */ macro
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/include/mbedtls/
H A Dentropy.h23 #define MBEDTLS_ENTROPY_BLOCK_SIZE 64 /**< Block size of entropy accumulator (SHA-512) */ macro
28 #define MBEDTLS_ENTROPY_BLOCK_SIZE 32 /**< Block size of entropy accumulator (SHA-256) */ macro
/aosp_15_r20/external/mbedtls/programs/random/
H A Dgen_entropy.c33 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in main()
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/programs/random/
H A Dgen_entropy.c33 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in main()
/aosp_15_r20/external/mbedtls/tests/src/
H A Dpsa_crypto_helpers.c182 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_test_inject_entropy_restore()
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/src/
H A Dpsa_crypto_helpers.c193 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_test_inject_entropy_restore()

12