Lines Matching refs:dh_inputs
147 struct dh dh_inputs; in __keyctl_dh_compute() local
193 memset(&dh_inputs, 0, sizeof(dh_inputs)); in __keyctl_dh_compute()
195 dlen = dh_data_from_key(pcopy.prime, &dh_inputs.p); in __keyctl_dh_compute()
200 dh_inputs.p_size = dlen; in __keyctl_dh_compute()
202 dlen = dh_data_from_key(pcopy.base, &dh_inputs.g); in __keyctl_dh_compute()
207 dh_inputs.g_size = dlen; in __keyctl_dh_compute()
209 dlen = dh_data_from_key(pcopy.private, &dh_inputs.key); in __keyctl_dh_compute()
214 dh_inputs.key_size = dlen; in __keyctl_dh_compute()
216 secretlen = crypto_dh_key_len(&dh_inputs); in __keyctl_dh_compute()
222 ret = crypto_dh_encode_key(secret, secretlen, &dh_inputs); in __keyctl_dh_compute()
314 dh_free_data(&dh_inputs); in __keyctl_dh_compute()