Lines Matching refs:TEST_ASSERT
13 TEST_ASSERT(mbedtls_des_key_check_weak(key->x) == ret);
27 TEST_ASSERT(mbedtls_des_setkey_enc(&ctx, key_str->x) == 0);
28 TEST_ASSERT(mbedtls_des_crypt_ecb(&ctx, src_str->x, output) == 0);
30 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 8, dst->len) == 0);
47 TEST_ASSERT(mbedtls_des_setkey_dec(&ctx, key_str->x) == 0);
48 TEST_ASSERT(mbedtls_des_crypt_ecb(&ctx, src_str->x, output) == 0);
50 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 8, dst->len) == 0);
68 TEST_ASSERT(mbedtls_des_setkey_enc(&ctx, key_str->x) == 0);
69 TEST_ASSERT(mbedtls_des_crypt_cbc(&ctx, MBEDTLS_DES_ENCRYPT, src_str->len, iv_str->x,
73 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, src_str->len,
94 TEST_ASSERT(mbedtls_des_setkey_dec(&ctx, key_str->x) == 0);
95 TEST_ASSERT(mbedtls_des_crypt_cbc(&ctx, MBEDTLS_DES_DECRYPT, src_str->len, iv_str->x,
99 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, src_str->len,
120 TEST_ASSERT(mbedtls_des3_set2key_enc(&ctx, key_str->x) == 0);
122 TEST_ASSERT(mbedtls_des3_set3key_enc(&ctx, key_str->x) == 0);
124 TEST_ASSERT(0);
127 TEST_ASSERT(mbedtls_des3_crypt_ecb(&ctx, src_str->x, output) == 0);
129 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 8, dst->len) == 0);
148 TEST_ASSERT(mbedtls_des3_set2key_dec(&ctx, key_str->x) == 0);
150 TEST_ASSERT(mbedtls_des3_set3key_dec(&ctx, key_str->x) == 0);
152 TEST_ASSERT(0);
155 TEST_ASSERT(mbedtls_des3_crypt_ecb(&ctx, src_str->x, output) == 0);
157 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 8, dst->len) == 0);
177 TEST_ASSERT(mbedtls_des3_set2key_enc(&ctx, key_str->x) == 0);
179 TEST_ASSERT(mbedtls_des3_set3key_enc(&ctx, key_str->x) == 0);
181 TEST_ASSERT(0);
184 TEST_ASSERT(mbedtls_des3_crypt_cbc(&ctx, MBEDTLS_DES_ENCRYPT, src_str->len, iv_str->x,
189 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x,
211 TEST_ASSERT(mbedtls_des3_set2key_dec(&ctx, key_str->x) == 0);
213 TEST_ASSERT(mbedtls_des3_set3key_dec(&ctx, key_str->x) == 0);
215 TEST_ASSERT(0);
218 TEST_ASSERT(mbedtls_des3_crypt_cbc(&ctx, MBEDTLS_DES_DECRYPT, src_str->len, iv_str->x,
223 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, src_str->len,
264 TEST_ASSERT(0);
270 TEST_ASSERT(mbedtls_des_key_check_key_parity(key) == 0);
278 TEST_ASSERT(mbedtls_des_self_test(1) == 0);