Lines Matching refs:sched
39 int tc_ccm_config(TCCcmMode_t c, TCAesKeySched_t sched, uint8_t *nonce, in tc_ccm_config() argument
45 sched == (TCAesKeySched_t) 0 || in tc_ccm_config()
55 c->sched = sched; in tc_ccm_config()
65 unsigned int flag, TCAesKeySched_t sched) in ccm_cbc_mac() argument
81 (void) tc_aes_encrypt(T, T, sched); in ccm_cbc_mac()
94 unsigned int inlen, uint8_t *ctr, const TCAesKeySched_t sched) in ccm_ctr_mode() argument
106 sched == (TCAesKeySched_t) 0 || in ccm_ctr_mode()
123 if (!tc_aes_encrypt(buffer, nonce, sched)) { in ccm_ctr_mode()
169 (void) tc_aes_encrypt(tag, b, c->sched); in tc_ccm_generation_encryption()
171 ccm_cbc_mac(tag, associated_data, alen, 1, c->sched); in tc_ccm_generation_encryption()
174 ccm_cbc_mac(tag, payload, plen, 0, c->sched); in tc_ccm_generation_encryption()
184 ccm_ctr_mode(out, plen, payload, plen, b, c->sched); in tc_ccm_generation_encryption()
189 (void) tc_aes_encrypt(b, b, c->sched); in tc_ccm_generation_encryption()
229 ccm_ctr_mode(out, plen - c->mlen, payload, plen - c->mlen, b, c->sched); in tc_ccm_decryption_verification()
234 (void) tc_aes_encrypt(b, b, c->sched); in tc_ccm_decryption_verification()
250 (void) tc_aes_encrypt(b, b, c->sched); in tc_ccm_decryption_verification()
252 ccm_cbc_mac(b, associated_data, alen, 1, c->sched); in tc_ccm_decryption_verification()
255 ccm_cbc_mac(b, out, plen - c->mlen, 0, c->sched); in tc_ccm_decryption_verification()