Lines Matching refs:TEST_ASSERT

14     TEST_ASSERT( mbedtls_cmac_self_test( 1 ) == 0 );
30 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx, test_data, 16 ) ==
34 TEST_ASSERT( mbedtls_cipher_setup( &ctx, cipher_info ) == 0 );
36 TEST_ASSERT( mbedtls_cipher_cmac_starts( NULL, test_key, 128 ) ==
39 TEST_ASSERT( mbedtls_cipher_cmac_starts( &ctx, NULL, 128 ) ==
42 TEST_ASSERT( mbedtls_cipher_cmac_update( NULL, test_data, 16 ) ==
45 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx, NULL, 16 ) ==
48 TEST_ASSERT( mbedtls_cipher_cmac_finish( NULL, test_output ) ==
51 TEST_ASSERT( mbedtls_cipher_cmac_finish( &ctx, NULL ) ==
54 TEST_ASSERT( mbedtls_cipher_cmac_reset( NULL ) ==
57 TEST_ASSERT( mbedtls_cipher_cmac( NULL,
63 TEST_ASSERT( mbedtls_cipher_cmac( cipher_info,
69 TEST_ASSERT( mbedtls_cipher_cmac( cipher_info,
75 TEST_ASSERT( mbedtls_cipher_cmac( cipher_info,
81 TEST_ASSERT( mbedtls_aes_cmac_prf_128( NULL, 16,
86 TEST_ASSERT( mbedtls_aes_cmac_prf_128( test_key, 16,
91 TEST_ASSERT( mbedtls_aes_cmac_prf_128( test_key, 16,
111 TEST_ASSERT( (unsigned) key_size <= 8 * sizeof( key ) );
113 TEST_ASSERT( ( cipher_info = mbedtls_cipher_info_from_type( cipher_type ) )
117 TEST_ASSERT( ( result == mbedtls_cipher_cmac( cipher_info, key, key_size,
153 TEST_ASSERT( block1_len <= 100 );
154 TEST_ASSERT( block2_len <= 100 );
155 TEST_ASSERT( block3_len <= 100 );
156 TEST_ASSERT( block4_len <= 100 );
159 TEST_ASSERT( ( cipher_info = mbedtls_cipher_info_from_type( cipher_type ) )
162 TEST_ASSERT( mbedtls_cipher_setup( &ctx, cipher_info ) == 0 );
164 TEST_ASSERT( mbedtls_cipher_cmac_starts( &ctx,
171 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx,
176 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx,
181 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx,
186 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx,
190 TEST_ASSERT( mbedtls_cipher_cmac_finish( &ctx, output ) == 0 );
192 TEST_ASSERT( memcmp( output, expected_result, block_size ) == 0 );
240 TEST_ASSERT( block_a1_len <= 100 );
241 TEST_ASSERT( block_a2_len <= 100 );
242 TEST_ASSERT( block_a3_len <= 100 );
244 TEST_ASSERT( block_b1_len <= 100 );
245 TEST_ASSERT( block_b2_len <= 100 );
246 TEST_ASSERT( block_b3_len <= 100 );
249 TEST_ASSERT( ( cipher_info = mbedtls_cipher_info_from_type( cipher_type ) )
252 TEST_ASSERT( mbedtls_cipher_setup( &ctx, cipher_info ) == 0 );
254 TEST_ASSERT( mbedtls_cipher_cmac_starts( &ctx,
263 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx,
268 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx,
273 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx,
277 TEST_ASSERT( mbedtls_cipher_cmac_finish( &ctx, output ) == 0 );
279 TEST_ASSERT( memcmp( output, expected_result_a, block_size ) == 0 );
281 TEST_ASSERT( mbedtls_cipher_cmac_reset( &ctx ) == 0 );
288 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx,
293 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx,
298 TEST_ASSERT( mbedtls_cipher_cmac_update( &ctx,
302 TEST_ASSERT( mbedtls_cipher_cmac_finish( &ctx, output ) == 0 );
304 TEST_ASSERT( memcmp( output, expected_result_b, block_size ) == 0 );