Lines Matching refs:nonce
43 uint8_t nonce[TC_AES_BLOCK_SIZE]; in tc_ctr_mode() local
61 (void)_copy(nonce, sizeof(nonce), ctr, sizeof(nonce)); in tc_ctr_mode()
64 block_num = (nonce[12] << 24) | (nonce[13] << 16) | in tc_ctr_mode()
65 (nonce[14] << 8) | (nonce[15]); in tc_ctr_mode()
70 if (tc_aes_encrypt(buffer, nonce, sched)) { in tc_ctr_mode()
72 nonce[12] = (uint8_t)(block_num >> 24); in tc_ctr_mode()
73 nonce[13] = (uint8_t)(block_num >> 16); in tc_ctr_mode()
74 nonce[14] = (uint8_t)(block_num >> 8); in tc_ctr_mode()
75 nonce[15] = (uint8_t)(block_num); in tc_ctr_mode()
87 ctr[12] = nonce[12]; ctr[13] = nonce[13]; in tc_ctr_mode()
88 ctr[14] = nonce[14]; ctr[15] = nonce[15]; in tc_ctr_mode()