Lines Matching defs:buf
23 static int set_secret(struct ceph_crypto_key *key, void *buf)
43 key->key = kmemdup(buf, key->len, GFP_NOIO);
112 void *buf, *p;
116 buf = kmalloc(blen, GFP_NOFS);
117 if (!buf)
119 blen = ceph_unarmor(buf, inkey, inkey+inlen);
121 kfree(buf);
125 p = buf;
127 kfree(buf);
162 const void *buf, unsigned int buf_len)
165 const bool is_vmalloc = is_vmalloc_addr(buf);
166 unsigned int off = offset_in_page(buf);
198 page = vmalloc_to_page(buf);
200 page = virt_to_page(buf);
205 buf += len;
220 void *buf, int buf_len, int in_len, int *pout_len)
232 memset(buf + in_len, pad_byte, pad_byte);
233 ret = setup_sgtable(&sgt, &prealloc_sg, buf, crypt_len);
246 buf, crypt_len, 1);
260 buf, crypt_len, 1);
266 pad_byte = *(char *)(buf + in_len - 1);
284 void *buf, int buf_len, int in_len, int *pout_len)
291 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len,