Lines Matching refs:kkey

369 	u8 *kkey;  in pkey_ioctl_kblob2protk()  local
374 kkey = _copy_key_from_user(ktp.key, ktp.keylen); in pkey_ioctl_kblob2protk()
375 if (IS_ERR(kkey)) in pkey_ioctl_kblob2protk()
376 return PTR_ERR(kkey); in pkey_ioctl_kblob2protk()
378 rc = key2protkey(NULL, 0, kkey, ktp.keylen, in pkey_ioctl_kblob2protk()
382 kfree_sensitive(kkey); in pkey_ioctl_kblob2protk()
395 u8 *kkey; in pkey_ioctl_genseck2() local
410 kkey = kzalloc(klen, GFP_KERNEL); in pkey_ioctl_genseck2()
411 if (!kkey) { in pkey_ioctl_genseck2()
417 kkey, &klen, NULL); in pkey_ioctl_genseck2()
421 kfree_sensitive(kkey); in pkey_ioctl_genseck2()
426 kfree_sensitive(kkey); in pkey_ioctl_genseck2()
429 if (copy_to_user(kgs.key, kkey, klen)) { in pkey_ioctl_genseck2()
430 kfree_sensitive(kkey); in pkey_ioctl_genseck2()
437 kfree_sensitive(kkey); in pkey_ioctl_genseck2()
447 u8 *kkey; in pkey_ioctl_clr2seck2() local
465 kkey = kzalloc(klen, GFP_KERNEL); in pkey_ioctl_clr2seck2()
466 if (!kkey) { in pkey_ioctl_clr2seck2()
474 kkey, &klen, NULL); in pkey_ioctl_clr2seck2()
478 kfree_sensitive(kkey); in pkey_ioctl_clr2seck2()
484 kfree_sensitive(kkey); in pkey_ioctl_clr2seck2()
488 if (copy_to_user(kcs.key, kkey, klen)) { in pkey_ioctl_clr2seck2()
489 kfree_sensitive(kkey); in pkey_ioctl_clr2seck2()
498 kfree_sensitive(kkey); in pkey_ioctl_clr2seck2()
506 u8 *kkey; in pkey_ioctl_verifykey2() local
511 kkey = _copy_key_from_user(kvk.key, kvk.keylen); in pkey_ioctl_verifykey2()
512 if (IS_ERR(kkey)) in pkey_ioctl_verifykey2()
513 return PTR_ERR(kkey); in pkey_ioctl_verifykey2()
515 rc = pkey_handler_verify_key(kkey, kvk.keylen, in pkey_ioctl_verifykey2()
520 kfree_sensitive(kkey); in pkey_ioctl_verifykey2()
531 u8 *kkey; in pkey_ioctl_kblob2protk2() local
539 kkey = _copy_key_from_user(ktp.key, ktp.keylen); in pkey_ioctl_kblob2protk2()
540 if (IS_ERR(kkey)) { in pkey_ioctl_kblob2protk2()
542 return PTR_ERR(kkey); in pkey_ioctl_kblob2protk2()
545 rc = key2protkey(apqns, ktp.apqn_entries, kkey, ktp.keylen, in pkey_ioctl_kblob2protk2()
550 kfree_sensitive(kkey); in pkey_ioctl_kblob2protk2()
563 u8 *kkey; in pkey_ioctl_apqns4k() local
576 kkey = _copy_key_from_user(kak.key, kak.keylen); in pkey_ioctl_apqns4k()
577 if (IS_ERR(kkey)) { in pkey_ioctl_apqns4k()
579 return PTR_ERR(kkey); in pkey_ioctl_apqns4k()
581 rc = pkey_handler_apqns_for_key(kkey, kak.keylen, kak.flags, in pkey_ioctl_apqns4k()
584 kfree_sensitive(kkey); in pkey_ioctl_apqns4k()
661 u8 *kkey, *protkey; in pkey_ioctl_kblob2protk3() local
669 kkey = _copy_key_from_user(ktp.key, ktp.keylen); in pkey_ioctl_kblob2protk3()
670 if (IS_ERR(kkey)) { in pkey_ioctl_kblob2protk3()
672 return PTR_ERR(kkey); in pkey_ioctl_kblob2protk3()
677 kfree_sensitive(kkey); in pkey_ioctl_kblob2protk3()
680 rc = key2protkey(apqns, ktp.apqn_entries, kkey, ktp.keylen, in pkey_ioctl_kblob2protk3()
684 kfree_sensitive(kkey); in pkey_ioctl_kblob2protk3()