Home
last modified time | relevance | path

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

/external/dropbear/libtomcrypt/src/encauth/ccm/
Dccm_memory.c48 unsigned char PAD[16], ctr[16], CTRPAD[16], b; in ccm_memory() local
241 if ((err = cipher_descriptor[cipher].ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
248 … *((LTC_FAST_TYPE*)(&ct[y+z])) = *((LTC_FAST_TYPE*)(&pt[y+z])) ^ *((LTC_FAST_TYPE*)(&CTRPAD[z])); in ccm_memory()
261 if ((err = cipher_descriptor[cipher].ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
267 … *((LTC_FAST_TYPE*)(&pt[y+z])) = *((LTC_FAST_TYPE*)(&ct[y+z])) ^ *((LTC_FAST_TYPE*)(&CTRPAD[z])); in ccm_memory()
285 if ((err = cipher_descriptor[cipher].ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
294 ct[y] = b ^ CTRPAD[CTRlen++]; in ccm_memory()
296 b = ct[y] ^ CTRPAD[CTRlen++]; in ccm_memory()
320 if ((err = cipher_descriptor[cipher].ecb_encrypt(ctr, CTRPAD, skey)) != CRYPT_OK) { in ccm_memory()
330 tag[x] = PAD[x] ^ CTRPAD[x]; in ccm_memory()
[all …]