Lines Matching refs:ktp
1279 struct pkey_kblob2pkey ktp; in pkey_unlocked_ioctl() local
1282 if (copy_from_user(&ktp, utp, sizeof(ktp))) in pkey_unlocked_ioctl()
1284 kkey = _copy_key_from_user(ktp.key, ktp.keylen); in pkey_unlocked_ioctl()
1287 rc = pkey_keyblob2pkey(kkey, ktp.keylen, &ktp.protkey); in pkey_unlocked_ioctl()
1289 memzero_explicit(kkey, ktp.keylen); in pkey_unlocked_ioctl()
1293 if (copy_to_user(utp, &ktp, sizeof(ktp))) in pkey_unlocked_ioctl()
1405 struct pkey_kblob2pkey2 ktp; in pkey_unlocked_ioctl() local
1409 if (copy_from_user(&ktp, utp, sizeof(ktp))) in pkey_unlocked_ioctl()
1411 apqns = _copy_apqns_from_user(ktp.apqns, ktp.apqn_entries); in pkey_unlocked_ioctl()
1414 kkey = _copy_key_from_user(ktp.key, ktp.keylen); in pkey_unlocked_ioctl()
1419 rc = pkey_keyblob2pkey2(apqns, ktp.apqn_entries, in pkey_unlocked_ioctl()
1420 kkey, ktp.keylen, &ktp.protkey); in pkey_unlocked_ioctl()
1423 memzero_explicit(kkey, ktp.keylen); in pkey_unlocked_ioctl()
1427 if (copy_to_user(utp, &ktp, sizeof(ktp))) in pkey_unlocked_ioctl()
1524 struct pkey_kblob2pkey3 ktp; in pkey_unlocked_ioctl() local
1529 if (copy_from_user(&ktp, utp, sizeof(ktp))) in pkey_unlocked_ioctl()
1531 apqns = _copy_apqns_from_user(ktp.apqns, ktp.apqn_entries); in pkey_unlocked_ioctl()
1534 kkey = _copy_key_from_user(ktp.key, ktp.keylen); in pkey_unlocked_ioctl()
1545 rc = pkey_keyblob2pkey3(apqns, ktp.apqn_entries, kkey, in pkey_unlocked_ioctl()
1546 ktp.keylen, &ktp.pkeytype, in pkey_unlocked_ioctl()
1550 memzero_explicit(kkey, ktp.keylen); in pkey_unlocked_ioctl()
1556 if (ktp.pkey && ktp.pkeylen) { in pkey_unlocked_ioctl()
1557 if (protkeylen > ktp.pkeylen) { in pkey_unlocked_ioctl()
1561 if (copy_to_user(ktp.pkey, protkey, protkeylen)) { in pkey_unlocked_ioctl()
1567 ktp.pkeylen = protkeylen; in pkey_unlocked_ioctl()
1568 if (copy_to_user(utp, &ktp, sizeof(ktp))) in pkey_unlocked_ioctl()