Lines Matching refs:result

78 	uint32_t result = TC_PASS;  in do_test()  local
86 result = tc_ccm_config(&c, &sched, nonce, nlen, mlen); in do_test()
89 zassert_true(result, "CCM config failed"); in do_test()
91 result = tc_ccm_generation_encryption(ciphertext, sizeof(ciphertext), in do_test()
95 zassert_true(result, "ccm_encrypt failed"); in do_test()
106 result = tc_ccm_decryption_verification(decrypted, sizeof(decrypted), in do_test()
111 if (result == 0U) { in do_test()
119 result = TC_PASS; in do_test()
120 return result; in do_test()
125 uint32_t result = TC_PASS; in ZTEST() local
154 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in ZTEST()
158 zassert_false(result, "CCM test #1 (RFC 3610 test vector #1) failed."); in ZTEST()
163 uint32_t result = TC_PASS; in ZTEST() local
192 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in ZTEST()
196 zassert_false(result, "CCM test #2 failed."); in ZTEST()
201 uint32_t result = TC_PASS; in ZTEST() local
232 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), data, in ZTEST()
236 zassert_false(result, "CCM test #3 failed."); in ZTEST()
241 uint32_t result = TC_PASS; in ZTEST() local
271 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in ZTEST()
275 zassert_false(result, "CCM test #4 failed."); in ZTEST()
280 uint32_t result = TC_PASS; in ZTEST() local
310 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in ZTEST()
314 zassert_false(result, "CCM test #5 failed."); in ZTEST()
319 uint32_t result = TC_PASS; in ZTEST() local
350 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in ZTEST()
354 zassert_false(result, "CCM test #6 failed."); in ZTEST()
359 uint32_t result = TC_PASS; in ZTEST() local
392 result = tc_ccm_generation_encryption(ciphertext, sizeof(ciphertext), in ZTEST()
395 zassert_true(result, "ccm_encryption failed"); in ZTEST()
397 result = tc_ccm_decryption_verification(decrypted, sizeof(decrypted), in ZTEST()
401 if (result == 0U) { in ZTEST()
407 zassert_true(result, "ccm_decryption failed"); in ZTEST()
411 result = TC_PASS; in ZTEST()
414 zassert_false(result, "CCM test #7 failed."); in ZTEST()
420 uint32_t result = TC_PASS; in ZTEST() local
448 result = tc_ccm_generation_encryption(ciphertext, sizeof(ciphertext), in ZTEST()
452 zassert_true(result, "ccm_encrypt failed"); in ZTEST()
454 result = tc_ccm_decryption_verification(decrypted, sizeof(decrypted), in ZTEST()
458 if (result == 0U) { in ZTEST()
466 result = TC_PASS; in ZTEST()
469 zassert_false(result, "CCM test #8 (no payload data) failed."); in ZTEST()