Lines Matching refs:dlen
149 u8 *dst, unsigned int dlen, unsigned int zlen) in kdf_ctr() argument
157 while (dlen) { in kdf_ctr()
192 dlen -= h; in kdf_ctr()
200 memzero_explicit(dst_orig, dlen); in kdf_ctr()
237 ssize_t dlen; in __keyctl_dh_compute() local
289 dlen = dh_data_from_key(pcopy.prime, &dh_inputs.p); in __keyctl_dh_compute()
290 if (dlen < 0) { in __keyctl_dh_compute()
291 ret = dlen; in __keyctl_dh_compute()
294 dh_inputs.p_size = dlen; in __keyctl_dh_compute()
296 dlen = dh_data_from_key(pcopy.base, &dh_inputs.g); in __keyctl_dh_compute()
297 if (dlen < 0) { in __keyctl_dh_compute()
298 ret = dlen; in __keyctl_dh_compute()
301 dh_inputs.g_size = dlen; in __keyctl_dh_compute()
303 dlen = dh_data_from_key(pcopy.private, &dh_inputs.key); in __keyctl_dh_compute()
304 if (dlen < 0) { in __keyctl_dh_compute()
305 ret = dlen; in __keyctl_dh_compute()
308 dh_inputs.key_size = dlen; in __keyctl_dh_compute()