xref: /aosp_15_r20/external/mbedtls/tests/suites/test_suite_entropy.data (revision 62c56f9862f102b96d72393aff6076c951fb8148)
1*62c56f98SSadaf EbrahimiEntropy init-free-free
2*62c56f98SSadaf Ebrahimientropy_init_free:0
3*62c56f98SSadaf Ebrahimi
4*62c56f98SSadaf EbrahimiEntropy init-free-init-free
5*62c56f98SSadaf Ebrahimientropy_init_free:1
6*62c56f98SSadaf Ebrahimi
7*62c56f98SSadaf EbrahimiCreate NV seed_file
8*62c56f98SSadaf Ebrahiminv_seed_file_create:
9*62c56f98SSadaf Ebrahimi
10*62c56f98SSadaf EbrahimiEntropy write/update seed file: good
11*62c56f98SSadaf Ebrahimientropy_seed_file:"data_files/entropy_seed":0
12*62c56f98SSadaf Ebrahimi
13*62c56f98SSadaf EbrahimiEntropy write/update seed file: nonexistent
14*62c56f98SSadaf Ebrahimientropy_seed_file:"no_such_dir/file":MBEDTLS_ERR_ENTROPY_FILE_IO_ERROR
15*62c56f98SSadaf Ebrahimi
16*62c56f98SSadaf EbrahimiEntropy write/update seed file: base NV seed file
17*62c56f98SSadaf Ebrahimientropy_write_base_seed_file:0
18*62c56f98SSadaf Ebrahimi
19*62c56f98SSadaf EbrahimiEntropy no sources
20*62c56f98SSadaf Ebrahimientropy_no_sources:
21*62c56f98SSadaf Ebrahimi
22*62c56f98SSadaf EbrahimiEntropy too many sources
23*62c56f98SSadaf Ebrahimientropy_too_many_sources:
24*62c56f98SSadaf Ebrahimi
25*62c56f98SSadaf EbrahimiEntropy output length: 0
26*62c56f98SSadaf Ebrahimientropy_func_len:0:0
27*62c56f98SSadaf Ebrahimi
28*62c56f98SSadaf EbrahimiEntropy output length: 1
29*62c56f98SSadaf Ebrahimientropy_func_len:1:0
30*62c56f98SSadaf Ebrahimi
31*62c56f98SSadaf EbrahimiEntropy output length: 2
32*62c56f98SSadaf Ebrahimientropy_func_len:2:0
33*62c56f98SSadaf Ebrahimi
34*62c56f98SSadaf EbrahimiEntropy output length: 31
35*62c56f98SSadaf Ebrahimientropy_func_len:31:0
36*62c56f98SSadaf Ebrahimi
37*62c56f98SSadaf EbrahimiEntropy output length: 65 > BLOCK_SIZE
38*62c56f98SSadaf Ebrahimientropy_func_len:65:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
39*62c56f98SSadaf Ebrahimi
40*62c56f98SSadaf EbrahimiEntropy failing source
41*62c56f98SSadaf Ebrahimientropy_source_fail:"data_files/entropy_seed"
42*62c56f98SSadaf Ebrahimi
43*62c56f98SSadaf EbrahimiEntropy threshold: 16=2*8
44*62c56f98SSadaf Ebrahimientropy_threshold:16:2:8
45*62c56f98SSadaf Ebrahimi
46*62c56f98SSadaf EbrahimiEntropy threshold: 32=1*32
47*62c56f98SSadaf Ebrahimientropy_threshold:32:1:32
48*62c56f98SSadaf Ebrahimi
49*62c56f98SSadaf EbrahimiEntropy threshold: 0* never reaches the threshold
50*62c56f98SSadaf Ebrahimientropy_threshold:16:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
51*62c56f98SSadaf Ebrahimi
52*62c56f98SSadaf EbrahimiEntropy threshold: 1024 never reached
53*62c56f98SSadaf Ebrahimientropy_threshold:1024:1:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
54*62c56f98SSadaf Ebrahimi
55*62c56f98SSadaf EbrahimiEntropy calls: no strong
56*62c56f98SSadaf Ebrahimientropy_calls:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE
57*62c56f98SSadaf Ebrahimi
58*62c56f98SSadaf EbrahimiEntropy calls: 1 strong, 1*BLOCK_SIZE
59*62c56f98SSadaf Ebrahimientropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:MBEDTLS_ENTROPY_BLOCK_SIZE:1
60*62c56f98SSadaf Ebrahimi
61*62c56f98SSadaf EbrahimiEntropy calls: 1 strong, 2*(BLOCK_SIZE/2)
62*62c56f98SSadaf Ebrahimientropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
63*62c56f98SSadaf Ebrahimi
64*62c56f98SSadaf EbrahimiEntropy calls: 1 strong, BLOCK_SIZE*1
65*62c56f98SSadaf Ebrahimientropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:1:1:MBEDTLS_ENTROPY_BLOCK_SIZE
66*62c56f98SSadaf Ebrahimi
67*62c56f98SSadaf EbrahimiEntropy calls: 1 strong, 2*BLOCK_SIZE to reach threshold
68*62c56f98SSadaf Ebrahimientropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:MBEDTLS_ENTROPY_BLOCK_SIZE+1:MBEDTLS_ENTROPY_BLOCK_SIZE:2
69*62c56f98SSadaf Ebrahimi
70*62c56f98SSadaf EbrahimiEntropy calls: 2 strong, BLOCK_SIZE/2 each
71*62c56f98SSadaf Ebrahimientropy_calls:MBEDTLS_ENTROPY_SOURCE_STRONG:MBEDTLS_ENTROPY_SOURCE_WEAK:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:(MBEDTLS_ENTROPY_BLOCK_SIZE+1)/2:2
72*62c56f98SSadaf Ebrahimi
73*62c56f98SSadaf EbrahimiCheck NV seed standard IO
74*62c56f98SSadaf Ebrahimientropy_nv_seed_std_io:
75*62c56f98SSadaf Ebrahimi
76*62c56f98SSadaf EbrahimiCheck NV seed manually #1
77*62c56f98SSadaf Ebrahimientropy_nv_seed:"00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF"
78*62c56f98SSadaf Ebrahimi
79*62c56f98SSadaf EbrahimiCheck NV seed manually #2
80*62c56f98SSadaf Ebrahimientropy_nv_seed:"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
81*62c56f98SSadaf Ebrahimi
82*62c56f98SSadaf EbrahimiCheck NV seed manually #3
83*62c56f98SSadaf Ebrahimientropy_nv_seed:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
84*62c56f98SSadaf Ebrahimi
85*62c56f98SSadaf EbrahimiEntropy self test
86*62c56f98SSadaf Ebrahimientropy_selftest:0
87