Searched refs:PAD (Results 1 – 8 of 8) sorted by relevance
/optee_os/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_memory.c | 152 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 D | ccm_add_nonce.c | 49 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 D | ccm_add_aad.c | 39 …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 D | ccm_done.c | 38 …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 D | ccm_process.c | 73 …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 D | ccm_reset.c | 22 zeromem(ccm->PAD, sizeof(ccm->PAD)); in ccm_reset()
|
/optee_os/core/drivers/crypto/caam/include/ |
A D | caam_desc_ccb_defines.h | 49 (NFIFO_CLASS(cla) | (options) | NFIFO_STYPE(PAD) | NFIFO_DTYPE(data) | \
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_mac.h | 416 unsigned char PAD[16], member
|
Completed in 7 milliseconds