Searched refs:TC_ERROR (Results 1 – 13 of 13) sorted by relevance
/mcuboot-3.4.0/ext/tinycrypt/tests/ |
D | test_ccm_mode.c | 88 TC_ERROR("CCM config failed in %s.\n", __func__); in do_test() 97 TC_ERROR("ccm_encrypt failed in %s.\n", __func__); in do_test() 105 TC_ERROR("ccm_encrypt produced wrong ciphertext in %s.\n", in do_test() 117 TC_ERROR("ccm_decrypt failed in %s.\n", __func__); in do_test() 391 TC_ERROR("ccm_config failed in %s.\n", __func__); in test_vector_7() 400 TC_ERROR("ccm_encryption failed in %s.\n", __func__); in test_vector_7() 409 TC_ERROR("ccm_decrypt failed in %s.\n", __func__); in test_vector_7() 455 TC_ERROR("CCM config failed in %s.\n", __func__); in test_vector_8() 464 TC_ERROR("ccm_encrypt failed in %s.\n", __func__); in test_vector_8() 473 TC_ERROR("ccm_decrypt failed in %s.\n", __func__); in test_vector_8() [all …]
|
D | test_cmac_mode.c | 92 TC_ERROR("%s: AES encryption failed\n", __func__); in verify_gf_2_128_double() 100 TC_ERROR("%s: gf_2_128_double failed when msb = 0\n", __func__); in verify_gf_2_128_double() 108 TC_ERROR("%s: gf_2_128_double failed when msb = 1\n", __func__); in verify_gf_2_128_double() 135 TC_ERROR("%s: aes_cmac failed with null msg = 1\n", __func__); in verify_cmac_null_msg() 166 TC_ERROR("%s: aes_cmac failed with 1 block msg\n", __func__); in verify_cmac_1_block_msg() 201 TC_ERROR("%s: aes_cmac failed with 320 bit msg\n", __func__); in verify_cmac_320_bit_msg() 239 TC_ERROR("%s: aes_cmac failed with 512 bit msg\n", __func__); in verify_cmac_512_bit_msg() 275 TC_ERROR("CMAC test #1 (128 double) failed.\n"); in main() 282 TC_ERROR("CMAC test #2 (null msg) failed.\n"); in main() 289 TC_ERROR("CMAC test #3 (1 block msg)failed.\n"); in main() [all …]
|
D | test_ctr_mode.c | 92 TC_ERROR("CTR test #1 (encryption SP 800-38a tests) failed in %s.\n", __func__); in test_1_and_2() 98 TC_ERROR("CTR test #1 invalid block offset (%u).\n", off); in test_1_and_2() 110 TC_ERROR("CTR test #2 (decryption SP 800-38a tests) failed in %s.\n", __func__); in test_1_and_2() 116 TC_ERROR("CTR test #2 invalid block offset (%u).\n", off); in test_1_and_2() 141 TC_ERROR("CTR test #1 failed.\n"); in main()
|
D | test_sha256.c | 422 TC_ERROR("SHA256 test #1 failed.\n"); in main() 428 TC_ERROR("SHA256 test #2 failed.\n"); in main() 434 TC_ERROR("SHA256 test #3 failed.\n"); in main() 440 TC_ERROR("SHA256 test #4 failed.\n"); in main() 446 TC_ERROR("SHA256 test #5 failed.\n"); in main() 452 TC_ERROR("SHA256 test #6 failed.\n"); in main() 458 TC_ERROR("SHA256 test #7 failed.\n"); in main() 464 TC_ERROR("SHA256 test #8 failed.\n"); in main() 470 TC_ERROR("SHA256 test #9 failed.\n"); in main() 476 TC_ERROR("SHA256 test #10 failed.\n"); in main() [all …]
|
D | test_aes.c | 94 TC_ERROR("AES128 test %s (NIST key schedule test) failed.\n", in test_1() 133 TC_ERROR("AES128 %s (NIST encryption test) failed.\n", in test_2() 160 TC_ERROR("aes_decrypt failed\n"); in var_text_test() 2050 TC_ERROR("AES128 test #1 (NIST key schedule test) failed.\n"); in main() 2055 TC_ERROR("AES128 test #2 (NIST encryption test) failed.\n"); in main() 2060 TC_ERROR("AES128 test #3 (NIST fixed-key and variable-text) " in main() 2066 TC_ERROR("AES128 test #4 (NIST variable-key and fixed-text) " in main()
|
D | test_ecc_dh.c | 102 TC_ERROR("ECDH failure, exit.\n"); in ecdh_vectors() 322 TC_ERROR("Error: failed to parse CAVP response.\n"); in pkv_vectors() 438 TC_ERROR("uECC_make_key() failed\n"); in montecarlo_ecdh() 444 TC_ERROR("shared_secret() failed (1)\n"); in montecarlo_ecdh() 450 TC_ERROR("shared_secret() failed (2)\n"); in montecarlo_ecdh() 494 TC_ERROR("cavp_ecdh test failed.\n"); in main() 500 TC_ERROR("cavp_keygen test failed.\n"); in main() 506 TC_ERROR("cavp_pkv failed.\n"); in main() 512 TC_ERROR("montecarlo_ecdh test failed.\n"); in main()
|
D | test_hmac.c | 317 TC_ERROR("HMAC test #1 failed.\n"); in main() 323 TC_ERROR("HMAC test #2 failed.\n"); in main() 329 TC_ERROR("HMAC test #3 failed.\n"); in main() 335 TC_ERROR("HMAC test #4 failed.\n"); in main() 341 TC_ERROR("HMAC test #5 failed.\n"); in main() 347 TC_ERROR("HMAC #6 test failed.\n"); in main() 353 TC_ERROR("HMAC test #7 failed.\n"); in main()
|
D | test_ecc_dsa.c | 113 TC_ERROR("failed to import message!\n"); in sign_vectors() 135 TC_ERROR("ECDSA_sign failed!\n"); in sign_vectors() 371 TC_ERROR("Error: failed to parse CAVP response.\n"); in vrfy_vectors() 380 TC_ERROR("failed to import message!\n"); in vrfy_vectors() 613 TC_ERROR("uECC_make_key() failed\n"); in montecarlo_signverify() 618 TC_ERROR("uECC_sign() failed\n"); in montecarlo_signverify() 623 TC_ERROR("uECC_verify() failed\n"); in montecarlo_signverify() 648 TC_ERROR("cavp_sign test failed.\n"); in main() 654 TC_ERROR("cavp_verify test failed.\n"); in main() 660 TC_ERROR("montecarlo_signverify test failed.\n"); in main()
|
D | test_cbc_mode.c | 121 TC_ERROR("CBC test #1 (encryption SP 800-38a tests) failed in " in test_1_and_2() 139 TC_ERROR("CBC test #2 (decryption SP 800-38a tests) failed in. " in test_1_and_2() 166 TC_ERROR("CBC test #1 failed.\n"); in main()
|
D | test_hmac_prng.c | 101 TC_ERROR("HMAC-PRNG initialization failed.\n"); in main() 110 TC_ERROR("HMAC-PRNG reseed failed.\n"); in main() 119 TC_ERROR("HMAC-PRNG generate failed.\n"); in main()
|
D | test_ctr_prng.c | 297 TC_ERROR("CTR PRNG test #%d failed\n", idx); in executePRNG_TestVector() 403 TC_ERROR("CTR PRNG reseed tests failed\n"); in test_reseed() 421 TC_ERROR("CTR PRNG uninstantiate tests failed\n"); in test_uninstantiate() 429 TC_ERROR("CTR PRNG uninstantiate tests failed\n"); in test_uninstantiate() 436 TC_ERROR("CTR PRNG uninstantiate tests failed\n"); in test_uninstantiate() 525 TC_ERROR("CTR PRNG reseed tests failed\n"); in test_robustness()
|
D | test_ecc_utils.c | 208 TC_ERROR("\n Vector #%02d check %s - FAILURE:\n", num, name); in check_code() 209 TC_ERROR("\n Expected: %d, computed: %d\n\n", expected, computed); in check_code()
|
/mcuboot-3.4.0/ext/tinycrypt/tests/include/ |
D | test_utils.h | 61 #define TC_ERROR(fmt, ...) \ macro 102 TC_ERROR("\tTest #%d Failed!\n", testnum); in fatal() 114 TC_ERROR("The length of the computed buffer (%zu)", computedlen); in check_result() 115 TC_ERROR("does not match the expected length (%zu).", expectedlen); in check_result()
|