Lines Matching refs:TEST_ASSERT
30 TEST_ASSERT( mbedtls_ctr_drbg_random_with_add( &ctx,
34 TEST_ASSERT( mbedtls_ctr_drbg_random_with_add( &ctx,
39 TEST_ASSERT( mbedtls_ctr_drbg_reseed( &ctx, additional,
70 …TEST_ASSERT( mbedtls_ctr_drbg_seed_entropy_len( &ctx, mbedtls_entropy_func, entropy, add_init, add…
73 TEST_ASSERT( mbedtls_ctr_drbg_random_with_add( &ctx, buf, 16, add1, add1_len ) == 0 );
74 TEST_ASSERT( mbedtls_ctr_drbg_random_with_add( &ctx, buf, 16, add2, add2_len ) == 0 );
76 TEST_ASSERT( strcmp( (char *) output_str, result_str ) == 0 );
108 …TEST_ASSERT( mbedtls_ctr_drbg_seed_entropy_len( &ctx, mbedtls_entropy_func, entropy, add_init, add…
110 TEST_ASSERT( mbedtls_ctr_drbg_random_with_add( &ctx, buf, 16, add1, add1_len ) == 0 );
111 TEST_ASSERT( mbedtls_ctr_drbg_reseed( &ctx, add_reseed, add_reseed_len ) == 0 );
112 TEST_ASSERT( mbedtls_ctr_drbg_random_with_add( &ctx, buf, 16, add2, add2_len ) == 0 );
114 TEST_ASSERT( strcmp( (char *) output_str, result_str ) == 0 );
139 TEST_ASSERT( mbedtls_ctr_drbg_seed( &ctx, mbedtls_entropy_func, entropy, NULL, 0 ) == 0 );
140 TEST_ASSERT( last_idx < test_offset_idx );
147 TEST_ASSERT( mbedtls_ctr_drbg_random( &ctx, out, sizeof( out ) - 4 ) == 0 );
148 TEST_ASSERT( mbedtls_ctr_drbg_random_with_add( &ctx, out, sizeof( out ) - 4,
151 TEST_ASSERT( last_idx == test_offset_idx );
154 TEST_ASSERT( out[sizeof( out ) - 4] == 0 );
155 TEST_ASSERT( out[sizeof( out ) - 3] == 0 );
156 TEST_ASSERT( out[sizeof( out ) - 2] == 0 );
157 TEST_ASSERT( out[sizeof( out ) - 1] == 0 );
162 TEST_ASSERT( mbedtls_ctr_drbg_random( &ctx, out, sizeof( out ) ) == 0 );
163 TEST_ASSERT( last_idx < test_offset_idx );
169 TEST_ASSERT( mbedtls_ctr_drbg_random( &ctx, out, sizeof( out ) ) == 0 );
170 TEST_ASSERT( mbedtls_ctr_drbg_random_with_add( &ctx, out, sizeof( out ) ,
173 TEST_ASSERT( last_idx == test_offset_idx );
181 TEST_ASSERT( mbedtls_ctr_drbg_random( &ctx, out, sizeof( out ) ) == 0 );
182 TEST_ASSERT( last_idx < test_offset_idx );
187 TEST_ASSERT( mbedtls_ctr_drbg_random( &ctx, out, sizeof( out ) ) == 0 );
188 TEST_ASSERT( test_offset_idx - last_idx == 42 );
192 TEST_ASSERT( mbedtls_ctr_drbg_random( &ctx, out, sizeof( out ) ) == 0 );
193 TEST_ASSERT( test_offset_idx - last_idx == 13 );
207 TEST_ASSERT( mbedtls_ctr_drbg_seed( &ctx, rnd_std_rand, NULL, NULL, 0 ) == 0 );
208 TEST_ASSERT( mbedtls_ctr_drbg_write_seed_file( &ctx, path ) == ret );
209 TEST_ASSERT( mbedtls_ctr_drbg_update_seed_file( &ctx, path ) == ret );
219 TEST_ASSERT( mbedtls_ctr_drbg_self_test( 1 ) == 0 );