/optee_os/core/lib/libtomcrypt/src/modes/ctr/ |
A D | ctr_encrypt.c | 54 if (ctr->padlen == ctr->blocklen) { in _ctr_encrypt() 67 pt += ctr->blocklen; in _ctr_encrypt() 68 ct += ctr->blocklen; in _ctr_encrypt() 69 len -= ctr->blocklen; in _ctr_encrypt() 70 ctr->padlen = ctr->blocklen; in _ctr_encrypt() 107 if ((ctr->blocklen < 1) || (ctr->blocklen > (int)sizeof(ctr->ctr)) || in ctr_encrypt() 120 … if ((ctr->padlen == 0 || ctr->padlen == ctr->blocklen) && len >= (unsigned long)ctr->blocklen) { in ctr_encrypt() 124 pt += (len / ctr->blocklen) * ctr->blocklen; in ctr_encrypt() 125 ct += (len / ctr->blocklen) * ctr->blocklen; in ctr_encrypt() 126 len %= ctr->blocklen; in ctr_encrypt() [all …]
|
A D | ctr_getiv.c | 31 if ((unsigned long)ctr->blocklen > *len) { in ctr_getiv() 32 *len = ctr->blocklen; in ctr_getiv() 35 XMEMCPY(IV, ctr->ctr, ctr->blocklen); in ctr_getiv() 36 *len = ctr->blocklen; in ctr_getiv()
|
A D | ctr_start.c | 64 ctr->blocklen = cipher_descriptor[cipher]->block_length; in ctr_start() 68 for (x = 0; x < ctr->blocklen; x++) { in ctr_start() 84 for (x = ctr->blocklen-1; x >= ctr->ctrlen; x--) { in ctr_start()
|
A D | ctr_setiv.c | 38 if (len != (unsigned long)ctr->blocklen) { in ctr_setiv()
|
/optee_os/core/lib/libtomcrypt/src/modes/cbc/ |
A D | cbc_encrypt.c | 41 if (cbc->blocklen < 1 || cbc->blocklen > (int)sizeof(cbc->IV)) { in cbc_encrypt() 45 if (len % cbc->blocklen) { in cbc_encrypt() 49 if (cbc->blocklen % sizeof(LTC_FAST_TYPE)) { in cbc_encrypt() 55 …return cipher_descriptor[cbc->cipher]->accel_cbc_encrypt(pt, ct, len / cbc->blocklen, cbc->IV, &cb… in cbc_encrypt() 60 for (x = 0; x < cbc->blocklen; x += sizeof(LTC_FAST_TYPE)) { in cbc_encrypt() 64 for (x = 0; x < cbc->blocklen; x++) { in cbc_encrypt() 76 for (x = 0; x < cbc->blocklen; x += sizeof(LTC_FAST_TYPE)) { in cbc_encrypt() 80 for (x = 0; x < cbc->blocklen; x++) { in cbc_encrypt() 85 ct += cbc->blocklen; in cbc_encrypt() 86 pt += cbc->blocklen; in cbc_encrypt() [all …]
|
A D | cbc_decrypt.c | 47 …if (cbc->blocklen < 1 || cbc->blocklen > (int)sizeof(cbc->IV) || cbc->blocklen > (int)sizeof(tmp))… in cbc_decrypt() 51 if (len % cbc->blocklen) { in cbc_decrypt() 55 if (cbc->blocklen % sizeof(LTC_FAST_TYPE)) { in cbc_decrypt() 61 …return cipher_descriptor[cbc->cipher]->accel_cbc_decrypt(ct, pt, len / cbc->blocklen, cbc->IV, &cb… in cbc_decrypt() 71 for (x = 0; x < cbc->blocklen; x += sizeof(LTC_FAST_TYPE)) { in cbc_decrypt() 77 for (x = 0; x < cbc->blocklen; x++) { in cbc_decrypt() 84 ct += cbc->blocklen; in cbc_decrypt() 85 pt += cbc->blocklen; in cbc_decrypt() 86 len -= cbc->blocklen; in cbc_decrypt()
|
A D | cbc_getiv.c | 31 if ((unsigned long)cbc->blocklen > *len) { in cbc_getiv() 32 *len = cbc->blocklen; in cbc_getiv() 35 XMEMCPY(IV, cbc->IV, cbc->blocklen); in cbc_getiv() 36 *len = cbc->blocklen; in cbc_getiv()
|
A D | cbc_start.c | 49 cbc->blocklen = cipher_descriptor[cipher]->block_length; in cbc_start() 51 for (x = 0; x < cbc->blocklen; x++) { in cbc_start()
|
A D | cbc_setiv.c | 31 if (len != (unsigned long)cbc->blocklen) { in cbc_setiv()
|
/optee_os/core/lib/libtomcrypt/src/modes/f8/ |
A D | f8_encrypt.c | 39 if (f8->blocklen < 0 || f8->blocklen > (int)sizeof(f8->IV) || in f8_encrypt() 47 if (f8->padlen == f8->blocklen) { in f8_encrypt() 49 STORE32H(f8->blockcnt, (buf+(f8->blocklen-4))); in f8_encrypt() 51 for (x = 0; x < f8->blocklen; x++) { in f8_encrypt() 62 while (len >= (unsigned long)f8->blocklen) { in f8_encrypt() 63 STORE32H(f8->blockcnt, (buf+(f8->blocklen-4))); in f8_encrypt() 65 for (x = 0; x < f8->blocklen; x += sizeof(LTC_FAST_TYPE)) { in f8_encrypt() 80 if (f8->padlen == f8->blocklen) { in f8_encrypt() 82 STORE32H(f8->blockcnt, (buf+(f8->blocklen-4))); in f8_encrypt() 84 for (x = 0; x < f8->blocklen; x++) { in f8_encrypt()
|
A D | f8_getiv.c | 31 if ((unsigned long)f8->blocklen > *len) { in f8_getiv() 32 *len = f8->blocklen; in f8_getiv() 35 XMEMCPY(IV, f8->IV, f8->blocklen); in f8_getiv() 36 *len = f8->blocklen; in f8_getiv()
|
A D | f8_start.c | 58 f8->blocklen = cipher_descriptor[cipher]->block_length; in f8_start() 59 f8->padlen = f8->blocklen; in f8_start()
|
A D | f8_setiv.c | 37 if (len != (unsigned long)f8->blocklen) { in f8_setiv()
|
/optee_os/core/lib/libtomcrypt/src/modes/cfb/ |
A D | cfb_getiv.c | 31 if ((unsigned long)cfb->blocklen > *len) { in cfb_getiv() 32 *len = cfb->blocklen; in cfb_getiv() 35 XMEMCPY(IV, cfb->IV, cfb->blocklen); in cfb_getiv() 36 *len = cfb->blocklen; in cfb_getiv()
|
A D | cfb_encrypt.c | 40 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) || in cfb_encrypt() 46 if (cfb->padlen == cfb->blocklen) { in cfb_encrypt()
|
A D | cfb_decrypt.c | 40 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) || in cfb_decrypt() 46 if (cfb->padlen == cfb->blocklen) { in cfb_decrypt()
|
A D | cfb_start.c | 46 cfb->blocklen = cipher_descriptor[cipher]->block_length; in cfb_start() 47 for (x = 0; x < cfb->blocklen; x++) { in cfb_start()
|
A D | cfb_setiv.c | 37 if (len != (unsigned long)cfb->blocklen) { in cfb_setiv()
|
/optee_os/core/lib/libtomcrypt/src/modes/ofb/ |
A D | ofb_getiv.c | 31 if ((unsigned long)ofb->blocklen > *len) { in ofb_getiv() 32 *len = ofb->blocklen; in ofb_getiv() 35 XMEMCPY(IV, ofb->IV, ofb->blocklen); in ofb_getiv() 36 *len = ofb->blocklen; in ofb_getiv()
|
A D | ofb_start.c | 45 ofb->blocklen = cipher_descriptor[cipher]->block_length; in ofb_start() 46 for (x = 0; x < ofb->blocklen; x++) { in ofb_start() 51 ofb->padlen = ofb->blocklen; in ofb_start()
|
A D | ofb_encrypt.c | 38 if (ofb->blocklen < 0 || ofb->blocklen > (int)sizeof(ofb->IV) || in ofb_encrypt() 44 if (ofb->padlen == ofb->blocklen) { in ofb_encrypt()
|
A D | ofb_setiv.c | 37 if (len != (unsigned long)ofb->blocklen) { in ofb_setiv()
|
/optee_os/core/lib/libtomcrypt/src/misc/crypt/ |
A D | crypt_find_cipher_any.c | 24 int find_cipher_any(const char *name, int blocklen, int keylen) in find_cipher_any() argument 38 …if (blocklen <= (int)cipher_descriptor[x]->block_length && keylen <= (int)cipher_descriptor[x]->ma… in find_cipher_any()
|
/optee_os/core/lib/libtomcrypt/src/modes/ecb/ |
A D | ecb_start.c | 39 ecb->blocklen = cipher_descriptor[cipher]->block_length; in ecb_start()
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_cipher.h | 249 blocklen; member 261 blocklen, member 279 blocklen, member 295 blocklen; member 310 blocklen, member 359 blocklen, member 985 int find_cipher_any(const char *name, int blocklen, int keylen);
|