| /optee_os/core/lib/libtomcrypt/src/modes/ctr/ |
| H A D | ctr_encrypt.c | 24 for (x = ctr->blocklen - 1; x >= ctr->ctrlen; x--) { in s_ctr_increment_counter() 47 if (ctr->padlen == ctr->blocklen) { in s_ctr_encrypt() 55 if ((ctr->padlen == 0) && (len >= (unsigned long)ctr->blocklen)) { in s_ctr_encrypt() 56 for (x = 0; x < ctr->blocklen; x += sizeof(LTC_FAST_TYPE)) { in s_ctr_encrypt() 60 pt += ctr->blocklen; in s_ctr_encrypt() 61 ct += ctr->blocklen; in s_ctr_encrypt() 62 len -= ctr->blocklen; in s_ctr_encrypt() 63 ctr->padlen = ctr->blocklen; in s_ctr_encrypt() 72 if (ctr->padlen == ctr->blocklen) { in s_ctr_encrypt() 101 if ((ctr->blocklen < 1) || (ctr->blocklen > (int)sizeof(ctr->ctr)) || in ctr_encrypt() [all …]
|
| H A D | ctr_getiv.c | 24 if ((unsigned long)ctr->blocklen > *len) { in ctr_getiv() 25 *len = ctr->blocklen; in ctr_getiv() 28 XMEMCPY(IV, ctr->ctr, ctr->blocklen); in ctr_getiv() 29 *len = ctr->blocklen; in ctr_getiv()
|
| H A D | ctr_start.c | 57 ctr->blocklen = cipher_descriptor[cipher]->block_length; in ctr_start() 61 for (x = 0; x < ctr->blocklen; x++) { in ctr_start() 77 for (x = ctr->blocklen-1; x >= ctr->ctrlen; x--) { in ctr_start()
|
| H A D | ctr_setiv.c | 31 if (len != (unsigned long)ctr->blocklen) { in ctr_setiv()
|
| /optee_os/core/lib/libtomcrypt/src/modes/cbc/ |
| H A D | cbc_encrypt.c | 34 if (cbc->blocklen < 1 || cbc->blocklen > (int)sizeof(cbc->IV)) { in cbc_encrypt() 38 if (len % cbc->blocklen) { in cbc_encrypt() 42 if (cbc->blocklen % sizeof(LTC_FAST_TYPE)) { in cbc_encrypt() 48 …return cipher_descriptor[cbc->cipher]->accel_cbc_encrypt(pt, ct, len / cbc->blocklen, cbc->IV, &cb… in cbc_encrypt() 53 for (x = 0; x < cbc->blocklen; x += sizeof(LTC_FAST_TYPE)) { in cbc_encrypt() 57 for (x = 0; x < cbc->blocklen; x++) { in cbc_encrypt() 69 for (x = 0; x < cbc->blocklen; x += sizeof(LTC_FAST_TYPE)) { in cbc_encrypt() 73 for (x = 0; x < cbc->blocklen; x++) { in cbc_encrypt() 78 ct += cbc->blocklen; in cbc_encrypt() 79 pt += cbc->blocklen; in cbc_encrypt() [all …]
|
| H A D | cbc_decrypt.c | 40 …if (cbc->blocklen < 1 || cbc->blocklen > (int)sizeof(cbc->IV) || cbc->blocklen > (int)sizeof(tmp))… in cbc_decrypt() 44 if (len % cbc->blocklen) { in cbc_decrypt() 48 if (cbc->blocklen % sizeof(LTC_FAST_TYPE)) { in cbc_decrypt() 54 …return cipher_descriptor[cbc->cipher]->accel_cbc_decrypt(ct, pt, len / cbc->blocklen, cbc->IV, &cb… in cbc_decrypt() 64 for (x = 0; x < cbc->blocklen; x += sizeof(LTC_FAST_TYPE)) { in cbc_decrypt() 70 for (x = 0; x < cbc->blocklen; x++) { in cbc_decrypt() 77 ct += cbc->blocklen; in cbc_decrypt() 78 pt += cbc->blocklen; in cbc_decrypt() 79 len -= cbc->blocklen; in cbc_decrypt()
|
| H A D | cbc_getiv.c | 24 if ((unsigned long)cbc->blocklen > *len) { in cbc_getiv() 25 *len = cbc->blocklen; in cbc_getiv() 28 XMEMCPY(IV, cbc->IV, cbc->blocklen); in cbc_getiv() 29 *len = cbc->blocklen; in cbc_getiv()
|
| H A D | cbc_start.c | 42 cbc->blocklen = cipher_descriptor[cipher]->block_length; in cbc_start() 44 for (x = 0; x < cbc->blocklen; x++) { in cbc_start()
|
| H A D | cbc_setiv.c | 24 if (len != (unsigned long)cbc->blocklen) { in cbc_setiv()
|
| /optee_os/core/lib/libtomcrypt/src/modes/f8/ |
| H A D | f8_encrypt.c | 32 if (f8->blocklen < 0 || f8->blocklen > (int)sizeof(f8->IV) || in f8_encrypt() 40 if (f8->padlen == f8->blocklen) { in f8_encrypt() 42 STORE32H(f8->blockcnt, (buf+(f8->blocklen-4))); in f8_encrypt() 44 for (x = 0; x < f8->blocklen; x++) { in f8_encrypt() 55 while (len >= (unsigned long)f8->blocklen) { in f8_encrypt() 56 STORE32H(f8->blockcnt, (buf+(f8->blocklen-4))); in f8_encrypt() 58 for (x = 0; x < f8->blocklen; x += sizeof(LTC_FAST_TYPE)) { in f8_encrypt() 73 if (f8->padlen == f8->blocklen) { in f8_encrypt() 75 STORE32H(f8->blockcnt, (buf+(f8->blocklen-4))); in f8_encrypt() 77 for (x = 0; x < f8->blocklen; x++) { in f8_encrypt()
|
| H A D | f8_getiv.c | 24 if ((unsigned long)f8->blocklen > *len) { in f8_getiv() 25 *len = f8->blocklen; in f8_getiv() 28 XMEMCPY(IV, f8->IV, f8->blocklen); in f8_getiv() 29 *len = f8->blocklen; in f8_getiv()
|
| H A D | f8_start.c | 51 f8->blocklen = cipher_descriptor[cipher]->block_length; in f8_start() 52 f8->padlen = f8->blocklen; in f8_start()
|
| H A D | f8_setiv.c | 30 if (len != (unsigned long)f8->blocklen) { in f8_setiv()
|
| /optee_os/core/lib/libtomcrypt/src/modes/ofb/ |
| H A D | ofb_getiv.c | 24 if ((unsigned long)ofb->blocklen > *len) { in ofb_getiv() 25 *len = ofb->blocklen; in ofb_getiv() 28 XMEMCPY(IV, ofb->IV, ofb->blocklen); in ofb_getiv() 29 *len = ofb->blocklen; in ofb_getiv()
|
| H A D | ofb_start.c | 38 ofb->blocklen = cipher_descriptor[cipher]->block_length; in ofb_start() 39 for (x = 0; x < ofb->blocklen; x++) { in ofb_start() 44 ofb->padlen = ofb->blocklen; in ofb_start()
|
| H A D | ofb_encrypt.c | 31 if (ofb->blocklen < 0 || ofb->blocklen > (int)sizeof(ofb->IV) || in ofb_encrypt() 37 if (ofb->padlen == ofb->blocklen) { in ofb_encrypt()
|
| H A D | ofb_setiv.c | 30 if (len != (unsigned long)ofb->blocklen) { in ofb_setiv()
|
| /optee_os/core/lib/libtomcrypt/src/modes/cfb/ |
| H A D | cfb_getiv.c | 24 if ((unsigned long)cfb->blocklen > *len) { in cfb_getiv() 25 *len = cfb->blocklen; in cfb_getiv() 28 XMEMCPY(IV, cfb->IV, cfb->blocklen); in cfb_getiv() 29 *len = cfb->blocklen; in cfb_getiv()
|
| H A D | cfb_encrypt.c | 33 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) || in cfb_encrypt() 39 if (cfb->padlen == cfb->blocklen) { in cfb_encrypt()
|
| H A D | cfb_decrypt.c | 33 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) || in cfb_decrypt() 39 if (cfb->padlen == cfb->blocklen) { in cfb_decrypt()
|
| H A D | cfb_start.c | 39 cfb->blocklen = cipher_descriptor[cipher]->block_length; in cfb_start() 40 for (x = 0; x < cfb->blocklen; x++) { in cfb_start()
|
| H A D | cfb_setiv.c | 30 if (len != (unsigned long)cfb->blocklen) { in cfb_setiv()
|
| /optee_os/core/lib/libtomcrypt/src/misc/crypt/ |
| H A D | crypt_find_cipher_any.c | 17 int find_cipher_any(const char *name, int blocklen, int keylen) in find_cipher_any() argument 31 …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/ |
| H A D | ecb_start.c | 32 ecb->blocklen = cipher_descriptor[cipher]->block_length; in ecb_start()
|
| /optee_os/core/lib/libtomcrypt/src/headers/ |
| H A D | tomcrypt_cipher.h | 255 blocklen; member 271 blocklen, member 287 blocklen, member 303 blocklen; member 321 blocklen, member 368 blocklen, member 1012 int find_cipher_any(const char *name, int blocklen, int keylen);
|