Lines Matching full:blocklen
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++) {
75 for (x = ctr->blocklen-1; x >= 0; x--) {
90 if (ctr->padlen == 0 && len >= (unsigned long)ctr->blocklen) {
91 for (x = 0; x < ctr->blocklen; x += sizeof(LTC_FAST_TYPE)) {
95 pt += ctr->blocklen;
96 ct += ctr->blocklen;
97 len -= ctr->blocklen;
98 ctr->padlen = ctr->blocklen;