Lines Matching refs:nonce
42 uint8_t nonce[TC_AES_BLOCK_SIZE]; in tc_ctr_mode() local
58 (void)_copy(nonce, sizeof(nonce), ctr, sizeof(nonce)); in tc_ctr_mode()
61 block_num = (nonce[12] << 24) | (nonce[13] << 16) | in tc_ctr_mode()
62 (nonce[14] << 8) | (nonce[15]); in tc_ctr_mode()
66 if (tc_aes_encrypt(buffer, nonce, sched)) { in tc_ctr_mode()
68 nonce[12] = (uint8_t)(block_num >> 24); in tc_ctr_mode()
69 nonce[13] = (uint8_t)(block_num >> 16); in tc_ctr_mode()
70 nonce[14] = (uint8_t)(block_num >> 8); in tc_ctr_mode()
71 nonce[15] = (uint8_t)(block_num); in tc_ctr_mode()
81 ctr[12] = nonce[12]; ctr[13] = nonce[13]; in tc_ctr_mode()
82 ctr[14] = nonce[14]; ctr[15] = nonce[15]; in tc_ctr_mode()