Lines Matching refs:dlen
144 u8 *dst, unsigned int dlen, unsigned int zlen) in kdf_ctr() argument
152 while (dlen) { in kdf_ctr()
187 dlen -= h; in kdf_ctr()
195 memzero_explicit(dst_orig, dlen); in kdf_ctr()
232 ssize_t dlen; in __keyctl_dh_compute() local
284 dlen = dh_data_from_key(pcopy.prime, &dh_inputs.p); in __keyctl_dh_compute()
285 if (dlen < 0) { in __keyctl_dh_compute()
286 ret = dlen; in __keyctl_dh_compute()
289 dh_inputs.p_size = dlen; in __keyctl_dh_compute()
291 dlen = dh_data_from_key(pcopy.base, &dh_inputs.g); in __keyctl_dh_compute()
292 if (dlen < 0) { in __keyctl_dh_compute()
293 ret = dlen; in __keyctl_dh_compute()
296 dh_inputs.g_size = dlen; in __keyctl_dh_compute()
298 dlen = dh_data_from_key(pcopy.private, &dh_inputs.key); in __keyctl_dh_compute()
299 if (dlen < 0) { in __keyctl_dh_compute()
300 ret = dlen; in __keyctl_dh_compute()
303 dh_inputs.key_size = dlen; in __keyctl_dh_compute()