Home
last modified time | relevance | path

Searched refs:dh_inputs (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/security/keys/
Ddh.c131 struct dh dh_inputs; in __keyctl_dh_compute() local
177 memset(&dh_inputs, 0, sizeof(dh_inputs)); in __keyctl_dh_compute()
179 dlen = dh_data_from_key(pcopy.prime, &dh_inputs.p); in __keyctl_dh_compute()
184 dh_inputs.p_size = dlen; in __keyctl_dh_compute()
186 dlen = dh_data_from_key(pcopy.base, &dh_inputs.g); in __keyctl_dh_compute()
191 dh_inputs.g_size = dlen; in __keyctl_dh_compute()
193 dlen = dh_data_from_key(pcopy.private, &dh_inputs.key); in __keyctl_dh_compute()
198 dh_inputs.key_size = dlen; in __keyctl_dh_compute()
200 secretlen = crypto_dh_key_len(&dh_inputs); in __keyctl_dh_compute()
206 ret = crypto_dh_encode_key(secret, secretlen, &dh_inputs); in __keyctl_dh_compute()
[all …]