Lines Matching refs:nonce
70 int do_test(const uint8_t *key, uint8_t *nonce, in do_test() argument
86 result = tc_ccm_config(&c, &sched, nonce, nlen, mlen); in do_test()
140 uint8_t nonce[NONCE_LEN] = { in test_vector_1() local
163 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in test_vector_1()
177 uint8_t nonce[NONCE_LEN] = { in test_vector_2() local
200 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in test_vector_2()
214 uint8_t nonce[NONCE_LEN] = { in test_vector_3() local
239 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), data, in test_vector_3()
253 uint8_t nonce[NONCE_LEN] = { in test_vector_4() local
277 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in test_vector_4()
291 uint8_t nonce[NONCE_LEN] = { in test_vector_5() local
315 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in test_vector_5()
329 uint8_t nonce[NONCE_LEN] = { in test_vector_6() local
354 result = do_test(key, nonce, sizeof(nonce), hdr, sizeof(hdr), in test_vector_6()
368 uint8_t nonce[NONCE_LEN] = { in test_vector_7() local
390 if (tc_ccm_config(&c, &sched, nonce, sizeof(nonce), mlen) == 0) { in test_vector_7()
433 uint8_t nonce[NONCE_LEN] = { in test_vector_8() local
454 if (tc_ccm_config(&c, &sched, nonce, sizeof(nonce), mlen) == 0) { in test_vector_8()