Searched refs:PAD (Results 1 – 8 of 8) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_memory.c | 148 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 D | ccm_add_nonce.c | 45 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 D | ccm_add_aad.c | 32 …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 D | ccm_done.c | 31 …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 D | ccm_reset.c | 15 zeromem(ccm->PAD, sizeof(ccm->PAD)); in ccm_reset()
|
A D | ccm_process.c | 66 …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 D | caam_desc_ccb_defines.h | 49 (NFIFO_CLASS(cla) | (options) | NFIFO_STYPE(PAD) | NFIFO_DTYPE(data) | \
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_mac.h | 422 unsigned char PAD[16], /* flags | Nonce N | l(m) */ member
|
Completed in 7 milliseconds