Lines Matching refs:outbuf
115 uint8_t *outbuf = NULL; in keyctl_dh_compute_kdf() local
119 outbuf = kmalloc(outbuf_len, GFP_KERNEL); in keyctl_dh_compute_kdf()
120 if (!outbuf) { in keyctl_dh_compute_kdf()
125 ret = crypto_kdf108_ctr_generate(hash, &kbuf_iov, 1, outbuf, outbuf_len); in keyctl_dh_compute_kdf()
130 if (copy_to_user(buffer, outbuf, buflen) != 0) in keyctl_dh_compute_kdf()
134 kfree_sensitive(outbuf); in keyctl_dh_compute_kdf()
153 uint8_t *outbuf; in __keyctl_dh_compute() local
252 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute()
254 if (!outbuf) { in __keyctl_dh_compute()
259 sg_init_one(&outsg, outbuf, outlen); in __keyctl_dh_compute()
291 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
297 ret = keyctl_dh_compute_kdf(hash, buffer, buflen, outbuf, in __keyctl_dh_compute()
299 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) { in __keyctl_dh_compute()
308 kfree_sensitive(outbuf); in __keyctl_dh_compute()