Lines Matching refs:buf_len
207 const void *buf, unsigned int buf_len)
213 unsigned int chunk_len = PAGE_ALIGN(off + buf_len);
217 if (buf_len == 0) {
240 unsigned int len = min(chunk_len - off, buf_len);
251 buf_len -= len;
253 WARN_ON(buf_len != 0);
265 void *buf, int buf_len, int in_len, int *pout_len)
275 WARN_ON(crypt_len > buf_len);
329 void *buf, int buf_len, int in_len, int *pout_len)
338 ret = setup_sgtable(&sgt, &prealloc_sg, buf, buf_len);
343 sgt.sgl, sgt.nents, buf_len, AES_BLOCK_SIZE,
359 void *buf, int buf_len, int in_len, int *pout_len)
390 void *buf, int buf_len, int in_len, int *pout_len)
397 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len,
401 ceph_krb5_encrypt(key, usage_slot, buf, buf_len, in_len,
403 ceph_krb5_decrypt(key, usage_slot, buf, buf_len, in_len,
442 int buf_len, u8 hmac[SHA256_DIGEST_SIZE])
450 hmac_sha256(&key->hmac_key, buf, buf_len, hmac);