Lines Matching refs:chunk
111 size_t chunk = MAXCHUNK; in cipher_hw_des_cfb64_cipher() local
115 if (len < chunk) in cipher_hw_des_cfb64_cipher()
116 chunk = len; in cipher_hw_des_cfb64_cipher()
117 while (len > 0 && len >= chunk) { in cipher_hw_des_cfb64_cipher()
118 DES_cfb64_encrypt(in, out, (long)chunk, key, (DES_cblock *)ctx->iv, in cipher_hw_des_cfb64_cipher()
120 len -= chunk; in cipher_hw_des_cfb64_cipher()
121 in += chunk; in cipher_hw_des_cfb64_cipher()
122 out += chunk; in cipher_hw_des_cfb64_cipher()
123 if (len < chunk) in cipher_hw_des_cfb64_cipher()
124 chunk = len; in cipher_hw_des_cfb64_cipher()
137 size_t n, chunk = MAXCHUNK / 8; in cipher_hw_des_cfb1_cipher() local
142 if (inl < chunk) in cipher_hw_des_cfb1_cipher()
143 chunk = inl; in cipher_hw_des_cfb1_cipher()
145 while (inl && inl >= chunk) { in cipher_hw_des_cfb1_cipher()
146 for (n = 0; n < chunk * 8; ++n) { in cipher_hw_des_cfb1_cipher()
153 inl -= chunk; in cipher_hw_des_cfb1_cipher()
154 in += chunk; in cipher_hw_des_cfb1_cipher()
155 out += chunk; in cipher_hw_des_cfb1_cipher()
156 if (inl < chunk) in cipher_hw_des_cfb1_cipher()
157 chunk = inl; in cipher_hw_des_cfb1_cipher()