Lines Matching refs:kvk
277 struct pkey_verifykey kvk; in pkey_ioctl_verifykey() local
280 if (copy_from_user(&kvk, uvk, sizeof(kvk))) in pkey_ioctl_verifykey()
283 kvk.cardnr = 0xFFFF; in pkey_ioctl_verifykey()
284 kvk.domain = 0xFFFF; in pkey_ioctl_verifykey()
285 rc = pkey_handler_verify_key(kvk.seckey.seckey, in pkey_ioctl_verifykey()
286 sizeof(kvk.seckey.seckey), in pkey_ioctl_verifykey()
287 &kvk.cardnr, &kvk.domain, in pkey_ioctl_verifykey()
292 kvk.attributes = PKEY_VERIFY_ATTR_AES; in pkey_ioctl_verifykey()
293 kvk.keysize = (u16)keybitsize; in pkey_ioctl_verifykey()
295 kvk.attributes |= PKEY_VERIFY_ATTR_OLD_MKVP; in pkey_ioctl_verifykey()
296 if (!rc && copy_to_user(uvk, &kvk, sizeof(kvk))) in pkey_ioctl_verifykey()
298 memzero_explicit(&kvk, sizeof(kvk)); in pkey_ioctl_verifykey()
505 struct pkey_verifykey2 kvk; in pkey_ioctl_verifykey2() local
509 if (copy_from_user(&kvk, uvk, sizeof(kvk))) in pkey_ioctl_verifykey2()
511 kkey = _copy_key_from_user(kvk.key, kvk.keylen); in pkey_ioctl_verifykey2()
515 rc = pkey_handler_verify_key(kkey, kvk.keylen, in pkey_ioctl_verifykey2()
516 &kvk.cardnr, &kvk.domain, in pkey_ioctl_verifykey2()
517 &kvk.type, &kvk.size, &kvk.flags); in pkey_ioctl_verifykey2()
521 if (!rc && copy_to_user(uvk, &kvk, sizeof(kvk))) in pkey_ioctl_verifykey2()