Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_memory.c148 PAD[x++] = nonce[y]; in ccm_memory()
161 PAD[x++] = 0; in ccm_memory()
169 if ((err = cipher_descriptor[cipher]->ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) { in ccm_memory()
182 PAD[x++] ^= 0xFF; in ccm_memory()
183 PAD[x++] ^= 0xFE; in ccm_memory()
194 if ((err = cipher_descriptor[cipher]->ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) { in ccm_memory()
199 PAD[x++] ^= header[y]; in ccm_memory()
203 if ((err = cipher_descriptor[cipher]->ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) { in ccm_memory()
303 PAD[x++] ^= b; in ccm_memory()
307 if ((err = cipher_descriptor[cipher]->ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) { in ccm_memory()
[all …]
A Dccm_add_nonce.c45 ccm->PAD[x++] = nonce[y]; in ccm_add_nonce()
58 ccm->PAD[x++] = 0; in ccm_add_nonce()
66 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->PAD, ccm->PAD, &ccm->K)) != CRYPT_OK) { in ccm_add_nonce()
75 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>8) & 255; in ccm_add_nonce()
76 ccm->PAD[ccm->x++] ^= ccm->aadlen & 255; in ccm_add_nonce()
78 ccm->PAD[ccm->x++] ^= 0xFF; in ccm_add_nonce()
79 ccm->PAD[ccm->x++] ^= 0xFE; in ccm_add_nonce()
80 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>24) & 255; in ccm_add_nonce()
81 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>16) & 255; in ccm_add_nonce()
82 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>8) & 255; in ccm_add_nonce()
[all …]
A Dccm_add_aad.c32 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->PAD, ccm->PAD, &ccm->K)) != CRYPT_OK) { in ccm_add_aad()
37 ccm->PAD[ccm->x++] ^= adata[y]; in ccm_add_aad()
43 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->PAD, ccm->PAD, &ccm->K)) != CRYPT_OK) { in ccm_add_aad()
A Dccm_done.c31 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->PAD, ccm->PAD, &ccm->K)) != CRYPT_OK) { in ccm_done()
48 tag[x] = ccm->PAD[x] ^ ccm->CTRPAD[x]; in ccm_done()
A Dccm_reset.c15 zeromem(ccm->PAD, sizeof(ccm->PAD)); in ccm_reset()
A Dccm_process.c66 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->PAD, ccm->PAD, &ccm->K)) != CRYPT_OK) { in ccm_process()
71 ccm->PAD[ccm->x++] ^= b; in ccm_process()
/optee_os-3.20.0/core/drivers/crypto/caam/include/
A Dcaam_desc_ccb_defines.h49 (NFIFO_CLASS(cla) | (options) | NFIFO_STYPE(PAD) | NFIFO_DTYPE(data) | \
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h422 unsigned char PAD[16], /* flags | Nonce N | l(m) */ member

Completed in 7 milliseconds