Lines Matching refs:kcs
1163 struct pkey_clr2seck kcs; in pkey_unlocked_ioctl() local
1165 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
1167 rc = cca_clr2seckey(kcs.cardnr, kcs.domain, kcs.keytype, in pkey_unlocked_ioctl()
1168 kcs.clrkey.clrkey, kcs.seckey.seckey); in pkey_unlocked_ioctl()
1172 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()
1174 memzero_explicit(&kcs, sizeof(kcs)); in pkey_unlocked_ioctl()
1340 struct pkey_clr2seck2 kcs; in pkey_unlocked_ioctl() local
1345 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
1347 apqns = _copy_apqns_from_user(kcs.apqns, kcs.apqn_entries); in pkey_unlocked_ioctl()
1355 rc = pkey_clr2seckey2(apqns, kcs.apqn_entries, in pkey_unlocked_ioctl()
1356 kcs.type, kcs.size, kcs.keygenflags, in pkey_unlocked_ioctl()
1357 kcs.clrkey.clrkey, kkey, &klen); in pkey_unlocked_ioctl()
1364 if (kcs.key) { in pkey_unlocked_ioctl()
1365 if (kcs.keylen < klen) { in pkey_unlocked_ioctl()
1369 if (copy_to_user(kcs.key, kkey, klen)) { in pkey_unlocked_ioctl()
1374 kcs.keylen = klen; in pkey_unlocked_ioctl()
1375 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()
1377 memzero_explicit(&kcs, sizeof(kcs)); in pkey_unlocked_ioctl()