Lines Matching refs:in_len
219 void *buf, int buf_len, int in_len, int *pout_len)
225 int pad_byte = AES_BLOCK_SIZE - (in_len & (AES_BLOCK_SIZE - 1));
226 int crypt_len = encrypt ? in_len + pad_byte : in_len;
231 memset(buf + in_len, pad_byte, pad_byte);
265 pad_byte = *(char *)(buf + in_len - 1);
267 in_len >= pad_byte) {
268 *pout_len = in_len - pad_byte;
270 pr_err("%s got bad padding %d on in_len %d\n",
271 __func__, pad_byte, in_len);
283 void *buf, int buf_len, int in_len, int *pout_len)
287 *pout_len = in_len;
290 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len,