Lines Matching refs:entropy
39 entropy_ctx entropy;
48 entropy.len = sizeof( buf );
49 entropy.p = buf;
63 /* Init must use entropy */
64 TEST_ASSERT( mbedtls_hmac_drbg_seed( &ctx, md_info, mbedtls_test_entropy_func, &entropy,
66 /* default_entropy_len of entropy, plus half as much for the nonce */
68 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
71 * 2 * reps so the next few calls should not use entropy */
78 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
89 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
101 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
107 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
113 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
118 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
178 void hmac_drbg_no_reseed( int md_alg, data_t * entropy,
190 p_entropy.p = entropy->x;
191 p_entropy.len = entropy->len;
197 memcpy( data, entropy->x, p_entropy.len );
211 /* And now the normal entropy-based variant */
226 void hmac_drbg_nopr( int md_alg, data_t * entropy, data_t * custom,
237 p_entropy.p = entropy->x;
238 p_entropy.len = entropy->len;
259 void hmac_drbg_pr( int md_alg, data_t * entropy, data_t * custom,
269 p_entropy.p = entropy->x;
270 p_entropy.len = entropy->len;