Searched refs:CTRPAD (Results 1 – 5 of 5) sorted by relevance
/optee_os/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_memory.c | 50 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 D | ccm_process.c | 57 …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 D | ccm_reset.c | 24 zeromem(ccm->CTRPAD, sizeof(ccm->CTRPAD)); in ccm_reset()
|
A D | ccm_done.c | 47 …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 D | tomcrypt_mac.h | 418 CTRPAD[16], member
|
Completed in 8 milliseconds