Lines Matching refs:kcs
1362 struct pkey_clr2seck kcs; in pkey_unlocked_ioctl() local
1364 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
1366 rc = cca_clr2seckey(kcs.cardnr, kcs.domain, kcs.keytype, in pkey_unlocked_ioctl()
1367 kcs.clrkey.clrkey, kcs.seckey.seckey); in pkey_unlocked_ioctl()
1371 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()
1373 memzero_explicit(&kcs, sizeof(kcs)); in pkey_unlocked_ioctl()
1551 struct pkey_clr2seck2 kcs; in pkey_unlocked_ioctl() local
1555 if (copy_from_user(&kcs, ucs, sizeof(kcs))) in pkey_unlocked_ioctl()
1557 apqns = _copy_apqns_from_user(kcs.apqns, kcs.apqn_entries); in pkey_unlocked_ioctl()
1565 rc = pkey_clr2seckey2(apqns, kcs.apqn_entries, in pkey_unlocked_ioctl()
1566 kcs.type, kcs.size, kcs.keygenflags, in pkey_unlocked_ioctl()
1567 kcs.clrkey.clrkey, kkey, &klen); in pkey_unlocked_ioctl()
1574 if (kcs.key) { in pkey_unlocked_ioctl()
1575 if (kcs.keylen < klen) { in pkey_unlocked_ioctl()
1579 if (copy_to_user(kcs.key, kkey, klen)) { in pkey_unlocked_ioctl()
1584 kcs.keylen = klen; in pkey_unlocked_ioctl()
1585 if (copy_to_user(ucs, &kcs, sizeof(kcs))) in pkey_unlocked_ioctl()
1587 memzero_explicit(&kcs, sizeof(kcs)); in pkey_unlocked_ioctl()