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,
110 TEST_ASSERT((unsigned) key_size <= 8 * sizeof(key));
112 TEST_ASSERT((cipher_info = mbedtls_cipher_info_from_type(cipher_type))
122 TEST_ASSERT((result == mbedtls_cipher_cmac(cipher_info, key, key_size,
145 TEST_ASSERT(block1_len <= 100);
146 TEST_ASSERT(block2_len <= 100);
147 TEST_ASSERT(block3_len <= 100);
148 TEST_ASSERT(block4_len <= 100);
151 TEST_ASSERT((cipher_info = mbedtls_cipher_info_from_type(cipher_type))
154 TEST_ASSERT(mbedtls_cipher_setup(&ctx, cipher_info) == 0);
156 TEST_ASSERT(mbedtls_cipher_cmac_starts(&ctx,
163 TEST_ASSERT(mbedtls_cipher_cmac_update(&ctx,
169 TEST_ASSERT(mbedtls_cipher_cmac_update(&ctx,
175 TEST_ASSERT(mbedtls_cipher_cmac_update(&ctx,
181 TEST_ASSERT(mbedtls_cipher_cmac_update(&ctx,
186 TEST_ASSERT(mbedtls_cipher_cmac_finish(&ctx, output) == 0);
188 TEST_ASSERT(memcmp(output, expected_result->x, block_size) == 0);
226 TEST_ASSERT(block_a1_len <= 100);
227 TEST_ASSERT(block_a2_len <= 100);
228 TEST_ASSERT(block_a3_len <= 100);
230 TEST_ASSERT(block_b1_len <= 100);
231 TEST_ASSERT(block_b2_len <= 100);
232 TEST_ASSERT(block_b3_len <= 100);
235 TEST_ASSERT((cipher_info = mbedtls_cipher_info_from_type(cipher_type))
238 TEST_ASSERT(mbedtls_cipher_setup(&ctx, cipher_info) == 0);
240 TEST_ASSERT(mbedtls_cipher_cmac_starts(&ctx,
249 TEST_ASSERT(mbedtls_cipher_cmac_update(&ctx,
255 TEST_ASSERT(mbedtls_cipher_cmac_update(&ctx,
261 TEST_ASSERT(mbedtls_cipher_cmac_update(&ctx,
266 TEST_ASSERT(mbedtls_cipher_cmac_finish(&ctx, output) == 0);
268 TEST_ASSERT(memcmp(output, expected_result_a->x, block_size) == 0);
270 TEST_ASSERT(mbedtls_cipher_cmac_reset(&ctx) == 0);
277 TEST_ASSERT(mbedtls_cipher_cmac_update(&ctx,
283 TEST_ASSERT(mbedtls_cipher_cmac_update(&ctx,
289 TEST_ASSERT(mbedtls_cipher_cmac_update(&ctx,
294 TEST_ASSERT(mbedtls_cipher_cmac_finish(&ctx, output) == 0);
296 TEST_ASSERT(memcmp(output, expected_result_b->x, block_size) == 0);