Searched refs:kdfcopy (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/security/keys/ |
H A D | compat_dh.c | 20 struct keyctl_kdf_params kdfcopy; in compat_keyctl_dh_compute() local 29 kdfcopy.hashname = compat_ptr(compat_kdfcopy.hashname); in compat_keyctl_dh_compute() 30 kdfcopy.otherinfo = compat_ptr(compat_kdfcopy.otherinfo); in compat_keyctl_dh_compute() 31 kdfcopy.otherinfolen = compat_kdfcopy.otherinfolen; in compat_keyctl_dh_compute() 32 memcpy(kdfcopy.__spare, compat_kdfcopy.__spare, in compat_keyctl_dh_compute() 33 sizeof(kdfcopy.__spare)); in compat_keyctl_dh_compute() 35 return __keyctl_dh_compute(params, buffer, buflen, &kdfcopy); in compat_keyctl_dh_compute()
|
H A D | dh.c | 229 struct keyctl_kdf_params *kdfcopy) in __keyctl_dh_compute() 254 if (kdfcopy) { in __keyctl_dh_compute() 257 if (memchr_inv(kdfcopy->__spare, 0, sizeof(kdfcopy->__spare))) { in __keyctl_dh_compute() 263 kdfcopy->otherinfolen > KEYCTL_KDF_MAX_OI_LEN) { in __keyctl_dh_compute() 269 hashname = strndup_user(kdfcopy->hashname, CRYPTO_MAX_ALG_NAME); in __keyctl_dh_compute() 327 if (!kdfcopy) { in __keyctl_dh_compute() 341 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute() 375 if (kdfcopy) { in __keyctl_dh_compute() 227 __keyctl_dh_compute(struct keyctl_dh_params __user *params, char __user *buffer, size_t buflen, struct keyctl_kdf_params *kdfcopy) __keyctl_dh_compute() argument 414 struct keyctl_kdf_params kdfcopy; keyctl_dh_compute() local [all...] |
/kernel/linux/linux-6.6/security/keys/ |
H A D | compat_dh.c | 20 struct keyctl_kdf_params kdfcopy; in compat_keyctl_dh_compute() local 29 kdfcopy.hashname = compat_ptr(compat_kdfcopy.hashname); in compat_keyctl_dh_compute() 30 kdfcopy.otherinfo = compat_ptr(compat_kdfcopy.otherinfo); in compat_keyctl_dh_compute() 31 kdfcopy.otherinfolen = compat_kdfcopy.otherinfolen; in compat_keyctl_dh_compute() 32 memcpy(kdfcopy.__spare, compat_kdfcopy.__spare, in compat_keyctl_dh_compute() 33 sizeof(kdfcopy.__spare)); in compat_keyctl_dh_compute() 35 return __keyctl_dh_compute(params, buffer, buflen, &kdfcopy); in compat_keyctl_dh_compute()
|
H A D | dh.c | 124 struct keyctl_kdf_params *kdfcopy) in __keyctl_dh_compute() 149 if (kdfcopy) { in __keyctl_dh_compute() 152 if (memchr_inv(kdfcopy->__spare, 0, sizeof(kdfcopy->__spare))) { in __keyctl_dh_compute() 158 kdfcopy->otherinfolen > KEYCTL_KDF_MAX_OI_LEN) { in __keyctl_dh_compute() 164 hashname = strndup_user(kdfcopy->hashname, CRYPTO_MAX_ALG_NAME); in __keyctl_dh_compute() 222 if (!kdfcopy) { in __keyctl_dh_compute() 236 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute() 266 if (kdfcopy) { in __keyctl_dh_compute() 122 __keyctl_dh_compute(struct keyctl_dh_params __user *params, char __user *buffer, size_t buflen, struct keyctl_kdf_params *kdfcopy) __keyctl_dh_compute() argument 304 struct keyctl_kdf_params kdfcopy; keyctl_dh_compute() local [all...] |
Completed in 2 milliseconds