Home
last modified time | relevance | path

Searched refs:blocklen (Results 1 – 25 of 27) sorted by relevance

12

/optee_os/core/lib/libtomcrypt/src/modes/ctr/
A Dctr_encrypt.c54 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 Dctr_getiv.c31 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 Dctr_start.c64 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 Dctr_setiv.c38 if (len != (unsigned long)ctr->blocklen) { in ctr_setiv()
/optee_os/core/lib/libtomcrypt/src/modes/cbc/
A Dcbc_encrypt.c41 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 Dcbc_decrypt.c47 …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 Dcbc_getiv.c31 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 Dcbc_start.c49 cbc->blocklen = cipher_descriptor[cipher]->block_length; in cbc_start()
51 for (x = 0; x < cbc->blocklen; x++) { in cbc_start()
A Dcbc_setiv.c31 if (len != (unsigned long)cbc->blocklen) { in cbc_setiv()
/optee_os/core/lib/libtomcrypt/src/modes/f8/
A Df8_encrypt.c39 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 Df8_getiv.c31 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 Df8_start.c58 f8->blocklen = cipher_descriptor[cipher]->block_length; in f8_start()
59 f8->padlen = f8->blocklen; in f8_start()
A Df8_setiv.c37 if (len != (unsigned long)f8->blocklen) { in f8_setiv()
/optee_os/core/lib/libtomcrypt/src/modes/cfb/
A Dcfb_getiv.c31 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 Dcfb_encrypt.c40 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) || in cfb_encrypt()
46 if (cfb->padlen == cfb->blocklen) { in cfb_encrypt()
A Dcfb_decrypt.c40 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) || in cfb_decrypt()
46 if (cfb->padlen == cfb->blocklen) { in cfb_decrypt()
A Dcfb_start.c46 cfb->blocklen = cipher_descriptor[cipher]->block_length; in cfb_start()
47 for (x = 0; x < cfb->blocklen; x++) { in cfb_start()
A Dcfb_setiv.c37 if (len != (unsigned long)cfb->blocklen) { in cfb_setiv()
/optee_os/core/lib/libtomcrypt/src/modes/ofb/
A Dofb_getiv.c31 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 Dofb_start.c45 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 Dofb_encrypt.c38 if (ofb->blocklen < 0 || ofb->blocklen > (int)sizeof(ofb->IV) || in ofb_encrypt()
44 if (ofb->padlen == ofb->blocklen) { in ofb_encrypt()
A Dofb_setiv.c37 if (len != (unsigned long)ofb->blocklen) { in ofb_setiv()
/optee_os/core/lib/libtomcrypt/src/misc/crypt/
A Dcrypt_find_cipher_any.c24 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 Decb_start.c39 ecb->blocklen = cipher_descriptor[cipher]->block_length; in ecb_start()
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_cipher.h249 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);

Completed in 21 milliseconds

12