Lines Matching refs:result
77 int result = TC_PASS; in do_test() local
86 result = tc_ccm_config(&c, &sched, nonce, nlen, mlen); in do_test()
87 if (result == 0) { in do_test()
90 result = TC_FAIL; in do_test()
94 result = tc_ccm_generation_encryption(ciphertext, TC_CCM_MAX_CT_SIZE, hdr, in do_test()
96 if (result == 0) { in do_test()
99 result = TC_FAIL; in do_test()
110 result = TC_FAIL; in do_test()
114 result = tc_ccm_decryption_verification(decrypted, TC_CCM_MAX_PT_SIZE, hdr, in do_test()
116 if (result == 0) { in do_test()
121 result = TC_FAIL; in do_test()
125 result = TC_PASS; in do_test()
128 TC_END_RESULT(result); in do_test()
129 return result; in do_test()
134 int result = TC_PASS; in test_vector_1() local
163 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in test_vector_1()
166 return result; in test_vector_1()
171 int result = TC_PASS; in test_vector_2() local
200 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in test_vector_2()
203 return result; in test_vector_2()
208 int result = TC_PASS; in test_vector_3() local
239 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), data, in test_vector_3()
242 return result; in test_vector_3()
247 int result = TC_PASS; in test_vector_4() local
277 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in test_vector_4()
280 return result; in test_vector_4()
285 int result = TC_PASS; in test_vector_5() local
315 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in test_vector_5()
318 return result; in test_vector_5()
323 int result = TC_PASS; in test_vector_6() local
354 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in test_vector_6()
357 return result; in test_vector_6()
362 int result = TC_PASS; in test_vector_7() local
393 result = TC_FAIL; in test_vector_7()
397 result = tc_ccm_generation_encryption(ciphertext, TC_CCM_MAX_CT_SIZE, hdr, in test_vector_7()
399 if (result == 0) { in test_vector_7()
402 result = TC_FAIL; in test_vector_7()
406 result = tc_ccm_decryption_verification (decrypted, TC_CCM_MAX_PT_SIZE, hdr, in test_vector_7()
408 if (result == 0) { in test_vector_7()
413 result = TC_FAIL; in test_vector_7()
417 result = TC_PASS; in test_vector_7()
420 TC_END_RESULT(result); in test_vector_7()
421 return result; in test_vector_7()
427 int result = TC_PASS; in test_vector_8() local
457 result = TC_FAIL; in test_vector_8()
461 result = tc_ccm_generation_encryption(ciphertext, TC_CCM_MAX_CT_SIZE, hdr, in test_vector_8()
463 if (result == 0) { in test_vector_8()
466 result = TC_FAIL; in test_vector_8()
470 result = tc_ccm_decryption_verification(decrypted, TC_CCM_MAX_PT_SIZE, hdr, in test_vector_8()
472 if (result == 0) { in test_vector_8()
477 result = TC_FAIL; in test_vector_8()
481 result = TC_PASS; in test_vector_8()
484 TC_END_RESULT(result); in test_vector_8()
485 return result; in test_vector_8()
493 int result = TC_PASS; in main() local
497 result = test_vector_1(); in main()
498 if (result == TC_FAIL) { /* terminate test */ in main()
502 result = test_vector_2(); in main()
503 if (result == TC_FAIL) { /* terminate test */ in main()
507 result = test_vector_3(); in main()
508 if (result == TC_FAIL) { /* terminate test */ in main()
512 result = test_vector_4(); in main()
513 if (result == TC_FAIL) { /* terminate test */ in main()
517 result = test_vector_5(); in main()
518 if (result == TC_FAIL) { /* terminate test */ in main()
522 result = test_vector_6(); in main()
523 if (result == TC_FAIL) { /* terminate test */ in main()
527 result = test_vector_7(); in main()
528 if (result == TC_FAIL) { /* terminate test */ in main()
532 result = test_vector_8(); in main()
533 if (result == TC_FAIL) { /* terminate test */ in main()
541 TC_END_RESULT(result); in main()
542 TC_END_REPORT(result); in main()
544 return result; in main()