/external/dropbear/libtomcrypt/src/modes/cbc/ |
cbc_getiv.c | 32 if ((unsigned long)cbc->blocklen > *len) { 33 *len = cbc->blocklen; 36 XMEMCPY(IV, cbc->IV, cbc->blocklen); 37 *len = cbc->blocklen;
|
cbc_encrypt.c | 41 /* is blocklen valid? */ 42 if (cbc->blocklen < 1 || cbc->blocklen > (int)sizeof(cbc->IV)) { 46 if (len % cbc->blocklen) { 50 if (cbc->blocklen % sizeof(LTC_FAST_TYPE)) { 56 return cipher_descriptor[cbc->cipher].accel_cbc_encrypt(pt, ct, len / cbc->blocklen, cbc->IV, &cbc->key); 61 for (x = 0; x < cbc->blocklen; x += sizeof(LTC_FAST_TYPE)) { 65 for (x = 0; x < cbc->blocklen; x++) { 77 for (x = 0; x < cbc->blocklen; x += sizeof(LTC_FAST_TYPE)) { 81 for (x = 0; x < cbc->blocklen; x++) [all...] |
cbc_decrypt.c | 47 /* is blocklen valid? */ 48 if (cbc->blocklen < 1 || cbc->blocklen > (int)sizeof(cbc->IV)) { 52 if (len % cbc->blocklen) { 56 if (cbc->blocklen % sizeof(LTC_FAST_TYPE)) { 62 return cipher_descriptor[cbc->cipher].accel_cbc_decrypt(ct, pt, len / cbc->blocklen, cbc->IV, &cbc->key); 72 for (x = 0; x < cbc->blocklen; x += sizeof(LTC_FAST_TYPE)) { 78 for (x = 0; x < cbc->blocklen; x++) { 85 ct += cbc->blocklen; 86 pt += cbc->blocklen; [all...] |
cbc_start.c | 50 cbc->blocklen = cipher_descriptor[cipher].block_length; 52 for (x = 0; x < cbc->blocklen; x++) {
|
cbc_setiv.c | 32 if (len != (unsigned long)cbc->blocklen) {
|
/external/dropbear/libtomcrypt/src/modes/cfb/ |
cfb_getiv.c | 32 if ((unsigned long)cfb->blocklen > *len) { 33 *len = cfb->blocklen; 36 XMEMCPY(IV, cfb->IV, cfb->blocklen); 37 *len = cfb->blocklen;
|
cfb_decrypt.c | 40 /* is blocklen/padlen valid? */ 41 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) || 47 if (cfb->padlen == cfb->blocklen) {
|
cfb_encrypt.c | 40 /* is blocklen/padlen valid? */ 41 if (cfb->blocklen < 0 || cfb->blocklen > (int)sizeof(cfb->IV) || 47 if (cfb->padlen == cfb->blocklen) {
|
cfb_start.c | 47 cfb->blocklen = cipher_descriptor[cipher].block_length; 48 for (x = 0; x < cfb->blocklen; x++)
|
cfb_setiv.c | 38 if (len != (unsigned long)cfb->blocklen) {
|
/external/dropbear/libtomcrypt/src/modes/ctr/ |
ctr_getiv.c | 32 if ((unsigned long)ctr->blocklen > *len) { 33 *len = ctr->blocklen; 36 XMEMCPY(IV, ctr->ctr, ctr->blocklen); 37 *len = ctr->blocklen;
|
ctr_encrypt.c | 41 /* is blocklen/padlen valid? */ 42 if (ctr->blocklen < 1 || ctr->blocklen > (int)sizeof(ctr->ctr) || 48 if (ctr->blocklen % sizeof(LTC_FAST_TYPE)) { 54 if ((ctr->padlen == ctr->blocklen) && cipher_descriptor[ctr->cipher].accel_ctr_encrypt != NULL && (len >= (unsigned long)ctr->blocklen)) { 55 if ((err = cipher_descriptor[ctr->cipher].accel_ctr_encrypt(pt, ct, len/ctr->blocklen, ctr->ctr, ctr->mode, &ctr->key)) != CRYPT_OK) { 58 len %= ctr->blocklen; 63 if (ctr->padlen == ctr->blocklen) { 67 for (x = 0; x < ctr->blocklen; x++) [all...] |
ctr_start.c | 55 ctr->blocklen = cipher_descriptor[cipher].block_length; 59 for (x = 0; x < ctr->blocklen; x++) { 67 for (x = 0; x < ctr->blocklen; x++) { 75 for (x = ctr->blocklen-1; x >= 0; x--) {
|
ctr_setiv.c | 39 if (len != (unsigned long)ctr->blocklen) {
|
/external/dropbear/libtomcrypt/src/modes/f8/ |
f8_getiv.c | 32 if ((unsigned long)f8->blocklen > *len) { 33 *len = f8->blocklen; 36 XMEMCPY(IV, f8->IV, f8->blocklen); 37 *len = f8->blocklen;
|
f8_encrypt.c | 39 /* is blocklen/padlen valid? */ 40 if (f8->blocklen < 0 || f8->blocklen > (int)sizeof(f8->IV) || 48 if (f8->padlen == f8->blocklen) { 50 STORE32H(f8->blockcnt, (buf+(f8->blocklen-4))); 52 for (x = 0; x < f8->blocklen; x++) { 63 while (len >= (unsigned long)f8->blocklen) { 64 STORE32H(f8->blockcnt, (buf+(f8->blocklen-4))); 66 for (x = 0; x < f8->blocklen; x += sizeof(LTC_FAST_TYPE)) { 81 if (f8->padlen == f8->blocklen) { [all...] |
f8_setiv.c | 38 if (len != (unsigned long)f8->blocklen) {
|
/external/dropbear/libtomcrypt/src/modes/ofb/ |
ofb_getiv.c | 32 if ((unsigned long)ofb->blocklen > *len) { 33 *len = ofb->blocklen; 36 XMEMCPY(IV, ofb->IV, ofb->blocklen); 37 *len = ofb->blocklen;
|
ofb_start.c | 46 ofb->blocklen = cipher_descriptor[cipher].block_length; 47 for (x = 0; x < ofb->blocklen; x++) { 52 ofb->padlen = ofb->blocklen;
|
ofb_encrypt.c | 38 /* is blocklen/padlen valid? */ 39 if (ofb->blocklen < 0 || ofb->blocklen > (int)sizeof(ofb->IV) || 45 if (ofb->padlen == ofb->blocklen) {
|
ofb_setiv.c | 38 if (len != (unsigned long)ofb->blocklen) {
|
/external/dropbear/libtomcrypt/src/misc/crypt/ |
crypt_find_cipher_any.c | 21 @param blocklen The minimum length of the block cipher desired (octets) 25 int find_cipher_any(const char *name, int blocklen, int keylen) 39 if (blocklen <= (int)cipher_descriptor[x].block_length && keylen <= (int)cipher_descriptor[x].max_key_length) {
|
/external/smack/src/org/jivesoftware/smack/util/ |
Base32Encoder.java | 77 int blocklen = paddingToLen(padlen); local 78 if (blocklen < 0) 93 for (int j = 0; j < blocklen; j++) 111 int blocklen = 5; local 117 blocklen--; 120 int padlen = lenToPadding(blocklen); 150 private static int lenToPadding(int blocklen) { 151 switch (blocklen) {
|
/external/smack/src/org/xbill/DNS/utils/ |
base32.java | 44 blockLenToPadding(int blocklen) { 45 switch (blocklen) { 93 int blocklen = 5; local 99 blocklen--; 102 int padlen = blockLenToPadding(blocklen); 187 int blocklen = paddingToBlockLen(padlen); local 188 if (blocklen < 0) 203 for (int j = 0; j < blocklen; j++)
|
/external/dropbear/libtomcrypt/src/modes/ecb/ |
ecb_start.c | 40 ecb->blocklen = cipher_descriptor[cipher].block_length;
|