Lines Matching refs:outbuf
99 uint8_t *outbuf = NULL; in keyctl_dh_compute_kdf() local
103 outbuf = kmalloc(outbuf_len, GFP_KERNEL); in keyctl_dh_compute_kdf()
104 if (!outbuf) { in keyctl_dh_compute_kdf()
109 ret = crypto_kdf108_ctr_generate(hash, &kbuf_iov, 1, outbuf, outbuf_len); in keyctl_dh_compute_kdf()
114 if (copy_to_user(buffer, outbuf, buflen) != 0) in keyctl_dh_compute_kdf()
118 kfree_sensitive(outbuf); in keyctl_dh_compute_kdf()
137 uint8_t *outbuf; in __keyctl_dh_compute() local
236 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute()
238 if (!outbuf) { in __keyctl_dh_compute()
243 sg_init_one(&outsg, outbuf, outlen); in __keyctl_dh_compute()
271 if (copy_from_user(outbuf + req->dst_len, kdfcopy->otherinfo, in __keyctl_dh_compute()
277 ret = keyctl_dh_compute_kdf(hash, buffer, buflen, outbuf, in __keyctl_dh_compute()
279 } else if (copy_to_user(buffer, outbuf, req->dst_len) == 0) { in __keyctl_dh_compute()
288 kfree_sensitive(outbuf); in __keyctl_dh_compute()