Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_memory.c152 PAD[x++] = nonce[y]; in ccm_memory()
165 PAD[x++] = 0; in ccm_memory()
173 if ((err = cipher_descriptor[cipher]->ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) { in ccm_memory()
186 PAD[x++] ^= 0xFF; in ccm_memory()
187 PAD[x++] ^= 0xFE; in ccm_memory()
198 if ((err = cipher_descriptor[cipher]->ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) { in ccm_memory()
203 PAD[x++] ^= header[y]; in ccm_memory()
207 if ((err = cipher_descriptor[cipher]->ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) { in ccm_memory()
307 PAD[x++] ^= b; in ccm_memory()
311 if ((err = cipher_descriptor[cipher]->ecb_encrypt(PAD, PAD, skey)) != CRYPT_OK) { in ccm_memory()
[all …]
A Dccm_add_nonce.c49 ccm->PAD[x++] = nonce[y]; in ccm_add_nonce()
62 ccm->PAD[x++] = 0; in ccm_add_nonce()
70 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->PAD, ccm->PAD, &ccm->K)) != CRYPT_OK) { in ccm_add_nonce()
79 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>8) & 255; in ccm_add_nonce()
80 ccm->PAD[ccm->x++] ^= ccm->aadlen & 255; in ccm_add_nonce()
82 ccm->PAD[ccm->x++] ^= 0xFF; in ccm_add_nonce()
83 ccm->PAD[ccm->x++] ^= 0xFE; in ccm_add_nonce()
84 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>24) & 255; in ccm_add_nonce()
85 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>16) & 255; in ccm_add_nonce()
86 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>8) & 255; in ccm_add_nonce()
[all …]
A Dccm_add_aad.c39 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->PAD, ccm->PAD, &ccm->K)) != CRYPT_OK) { in ccm_add_aad()
44 ccm->PAD[ccm->x++] ^= adata[y]; in ccm_add_aad()
50 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->PAD, ccm->PAD, &ccm->K)) != CRYPT_OK) { in ccm_add_aad()
A Dccm_done.c38 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->PAD, ccm->PAD, &ccm->K)) != CRYPT_OK) { in ccm_done()
55 tag[x] = ccm->PAD[x] ^ ccm->CTRPAD[x]; in ccm_done()
A Dccm_process.c73 …if ((err = cipher_descriptor[ccm->cipher]->ecb_encrypt(ccm->PAD, ccm->PAD, &ccm->K)) != CRYPT_OK) { in ccm_process()
78 ccm->PAD[ccm->x++] ^= b; in ccm_process()
A Dccm_reset.c22 zeromem(ccm->PAD, sizeof(ccm->PAD)); in ccm_reset()
/optee_os/core/drivers/crypto/caam/include/
A Dcaam_desc_ccb_defines.h49 (NFIFO_CLASS(cla) | (options) | NFIFO_STYPE(PAD) | NFIFO_DTYPE(data) | \
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h416 unsigned char PAD[16], member

Completed in 7 milliseconds