Lines Matching refs:kgs
93 struct pkey_genseck kgs; in pkey_ioctl_genseck() local
98 if (copy_from_user(&kgs, ugs, sizeof(kgs))) in pkey_ioctl_genseck()
101 apqn.card = kgs.cardnr; in pkey_ioctl_genseck()
102 apqn.domain = kgs.domain; in pkey_ioctl_genseck()
103 keybuflen = sizeof(kgs.seckey.seckey); in pkey_ioctl_genseck()
105 kgs.keytype, PKEY_TYPE_CCA_DATA, 0, 0, in pkey_ioctl_genseck()
106 kgs.seckey.seckey, &keybuflen, NULL); in pkey_ioctl_genseck()
108 if (!rc && copy_to_user(ugs, &kgs, sizeof(kgs))) in pkey_ioctl_genseck()
110 memzero_explicit(&kgs, sizeof(kgs)); in pkey_ioctl_genseck()
393 struct pkey_genseck2 kgs; in pkey_ioctl_genseck2() local
399 if (copy_from_user(&kgs, ugs, sizeof(kgs))) in pkey_ioctl_genseck2()
401 u = pkey_aes_bitsize_to_keytype(kgs.size); in pkey_ioctl_genseck2()
404 __func__, kgs.size); in pkey_ioctl_genseck2()
407 apqns = _copy_apqns_from_user(kgs.apqns, kgs.apqn_entries); in pkey_ioctl_genseck2()
415 rc = pkey_handler_gen_key(apqns, kgs.apqn_entries, in pkey_ioctl_genseck2()
416 u, kgs.type, kgs.size, kgs.keygenflags, in pkey_ioctl_genseck2()
424 if (kgs.key) { in pkey_ioctl_genseck2()
425 if (kgs.keylen < klen) { in pkey_ioctl_genseck2()
429 if (copy_to_user(kgs.key, kkey, klen)) { in pkey_ioctl_genseck2()
434 kgs.keylen = klen; in pkey_ioctl_genseck2()
435 if (copy_to_user(ugs, &kgs, sizeof(kgs))) in pkey_ioctl_genseck2()