Lines Matching refs:buflen
95 char __user *buffer, size_t buflen, in keyctl_dh_compute_kdf() argument
101 size_t outbuf_len = roundup(buflen, crypto_shash_digestsize(hash)); in keyctl_dh_compute_kdf()
113 ret = buflen; in keyctl_dh_compute_kdf()
114 if (copy_to_user(buffer, outbuf, buflen) != 0) in keyctl_dh_compute_kdf()
123 char __user *buffer, size_t buflen, in __keyctl_dh_compute() argument
140 if (!params || (!buffer && buflen)) { in __keyctl_dh_compute()
157 if (buflen > KEYCTL_KDF_MAX_OUTPUT_LEN || in __keyctl_dh_compute()
227 if (buflen == 0) { in __keyctl_dh_compute()
230 } else if (outlen > buflen) { in __keyctl_dh_compute()
277 ret = keyctl_dh_compute_kdf(hash, buffer, buflen, outbuf, in __keyctl_dh_compute()
301 char __user *buffer, size_t buflen, in keyctl_dh_compute() argument
307 return __keyctl_dh_compute(params, buffer, buflen, NULL); in keyctl_dh_compute()
312 return __keyctl_dh_compute(params, buffer, buflen, &kdfcopy); in keyctl_dh_compute()