Lines Matching refs:in_len
220 void *buf, int buf_len, int in_len, int *pout_len)
226 int pad_byte = AES_BLOCK_SIZE - (in_len & (AES_BLOCK_SIZE - 1));
227 int crypt_len = encrypt ? in_len + pad_byte : in_len;
232 memset(buf + in_len, pad_byte, pad_byte);
266 pad_byte = *(char *)(buf + in_len - 1);
268 in_len >= pad_byte) {
269 *pout_len = in_len - pad_byte;
271 pr_err("%s got bad padding %d on in_len %d\n",
272 __func__, pad_byte, in_len);
284 void *buf, int buf_len, int in_len, int *pout_len)
288 *pout_len = in_len;
291 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len,