Home
last modified time | relevance | path

Searched refs:CTRPAD (Results 1 – 5 of 5) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_memory.c50 unsigned char PAD[16], ctr[16], CTRPAD[16], ptTag[16], b, *pt_real; in ccm_memory() local
242 if ((err = cipher_descriptor[cipher]->ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
249 …_PTR_CAST(&ct[y+z])) = *(LTC_FAST_TYPE_PTR_CAST(&pt[y+z])) ^ *(LTC_FAST_TYPE_PTR_CAST(&CTRPAD[z])); in ccm_memory()
262 if ((err = cipher_descriptor[cipher]->ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
286 if ((err = cipher_descriptor[cipher]->ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
295 ct[y] = b ^ CTRPAD[CTRlen++]; in ccm_memory()
297 b = ct[y] ^ CTRPAD[CTRlen++]; in ccm_memory()
321 if ((err = cipher_descriptor[cipher]->ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
335 tag[x] = PAD[x] ^ CTRPAD[x]; in ccm_memory()
341 ptTag[x] = tag[x] ^ CTRPAD[x]; in ccm_memory()
[all …]
A Dccm_process.c57 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->ctr, ccm->CTRPAD, &ccm->K)) != CRYPT_O… in ccm_process()
66 ct[y] = b ^ ccm->CTRPAD[ccm->CTRlen++]; in ccm_process()
68 b = ct[y] ^ ccm->CTRPAD[ccm->CTRlen++]; in ccm_process()
A Dccm_reset.c24 zeromem(ccm->CTRPAD, sizeof(ccm->CTRPAD)); in ccm_reset()
A Dccm_done.c47 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->ctr, ccm->CTRPAD, &ccm->K)) != CRYPT_O… in ccm_done()
55 tag[x] = ccm->PAD[x] ^ ccm->CTRPAD[x]; in ccm_done()
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h418 CTRPAD[16], member

Completed in 8 milliseconds