Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_memory.c43 unsigned char PAD[16], ctr[16], CTRPAD[16], ptTag[16], b, *pt_real; in ccm_memory() local
238 if ((err = cipher_descriptor[cipher]->ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
245 …_PTR_CAST(&ct[y+z])) = *(LTC_FAST_TYPE_PTR_CAST(&pt[y+z])) ^ *(LTC_FAST_TYPE_PTR_CAST(&CTRPAD[z])); in ccm_memory()
258 if ((err = cipher_descriptor[cipher]->ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
282 if ((err = cipher_descriptor[cipher]->ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
291 ct[y] = b ^ CTRPAD[CTRlen++]; in ccm_memory()
293 b = ct[y] ^ CTRPAD[CTRlen++]; in ccm_memory()
317 if ((err = cipher_descriptor[cipher]->ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
331 tag[x] = PAD[x] ^ CTRPAD[x]; in ccm_memory()
337 ptTag[x] = tag[x] ^ CTRPAD[x]; in ccm_memory()
[all …]
A Dccm_reset.c17 zeromem(ccm->CTRPAD, sizeof(ccm->CTRPAD)); in ccm_reset()
A Dccm_process.c50 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->ctr, ccm->CTRPAD, &ccm->K)) != CRYPT_O… in ccm_process()
59 ct[y] = b ^ ccm->CTRPAD[ccm->CTRlen++]; in ccm_process()
61 b = ct[y] ^ ccm->CTRPAD[ccm->CTRlen++]; in ccm_process()
A Dccm_done.c40 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->ctr, ccm->CTRPAD, &ccm->K)) != CRYPT_O… in ccm_done()
48 tag[x] = ccm->PAD[x] ^ ccm->CTRPAD[x]; in ccm_done()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h424 CTRPAD[16], member

Completed in 24 milliseconds