Lines Matching refs:kcs
1148 struct pkey_clr2seck kcs; in pkey_unlocked_ioctl() local
1150 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
1152 rc = cca_clr2seckey(kcs.cardnr, kcs.domain, kcs.keytype, in pkey_unlocked_ioctl()
1153 kcs.clrkey.clrkey, kcs.seckey.seckey); in pkey_unlocked_ioctl()
1157 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()
1159 memzero_explicit(&kcs, sizeof(kcs)); in pkey_unlocked_ioctl()
1325 struct pkey_clr2seck2 kcs; in pkey_unlocked_ioctl() local
1330 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
1332 apqns = _copy_apqns_from_user(kcs.apqns, kcs.apqn_entries); in pkey_unlocked_ioctl()
1340 rc = pkey_clr2seckey2(apqns, kcs.apqn_entries, in pkey_unlocked_ioctl()
1341 kcs.type, kcs.size, kcs.keygenflags, in pkey_unlocked_ioctl()
1342 kcs.clrkey.clrkey, kkey, &klen); in pkey_unlocked_ioctl()
1349 if (kcs.key) { in pkey_unlocked_ioctl()
1350 if (kcs.keylen < klen) { in pkey_unlocked_ioctl()
1354 if (copy_to_user(kcs.key, kkey, klen)) { in pkey_unlocked_ioctl()
1359 kcs.keylen = klen; in pkey_unlocked_ioctl()
1360 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()
1362 memzero_explicit(&kcs, sizeof(kcs)); in pkey_unlocked_ioctl()