Lines Matching full: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()
1326 struct pkey_clr2seck2 kcs; in pkey_unlocked_ioctl() local
1331 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
1333 apqns = _copy_apqns_from_user(kcs.apqns, kcs.apqn_entries); in pkey_unlocked_ioctl()
1341 rc = pkey_clr2seckey2(apqns, kcs.apqn_entries, in pkey_unlocked_ioctl()
1342 kcs.type, kcs.size, kcs.keygenflags, in pkey_unlocked_ioctl()
1343 kcs.clrkey.clrkey, kkey, &klen); in pkey_unlocked_ioctl()
1350 if (kcs.key) { in pkey_unlocked_ioctl()
1351 if (kcs.keylen < klen) { in pkey_unlocked_ioctl()
1355 if (copy_to_user(kcs.key, kkey, klen)) { in pkey_unlocked_ioctl()
1360 kcs.keylen = klen; in pkey_unlocked_ioctl()
1361 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()
1363 memzero_explicit(&kcs, sizeof(kcs)); in pkey_unlocked_ioctl()