Lines Matching refs:kkey
1487 u8 *kkey; in pkey_unlocked_ioctl() local
1491 kkey = _copy_key_from_user(ktp.key, ktp.keylen); in pkey_unlocked_ioctl()
1492 if (IS_ERR(kkey)) in pkey_unlocked_ioctl()
1493 return PTR_ERR(kkey); in pkey_unlocked_ioctl()
1495 rc = pkey_keyblob2pkey(kkey, ktp.keylen, ktp.protkey.protkey, in pkey_unlocked_ioctl()
1498 memzero_explicit(kkey, ktp.keylen); in pkey_unlocked_ioctl()
1499 kfree(kkey); in pkey_unlocked_ioctl()
1511 u8 *kkey; in pkey_unlocked_ioctl() local
1518 kkey = kzalloc(klen, GFP_KERNEL); in pkey_unlocked_ioctl()
1519 if (!kkey) { in pkey_unlocked_ioctl()
1525 kkey, &klen); in pkey_unlocked_ioctl()
1529 kfree(kkey); in pkey_unlocked_ioctl()
1534 kfree(kkey); in pkey_unlocked_ioctl()
1537 if (copy_to_user(kgs.key, kkey, klen)) { in pkey_unlocked_ioctl()
1538 kfree(kkey); in pkey_unlocked_ioctl()
1545 kfree(kkey); in pkey_unlocked_ioctl()
1553 u8 *kkey; in pkey_unlocked_ioctl() local
1560 kkey = kzalloc(klen, GFP_KERNEL); in pkey_unlocked_ioctl()
1561 if (!kkey) { in pkey_unlocked_ioctl()
1567 kcs.clrkey.clrkey, kkey, &klen); in pkey_unlocked_ioctl()
1571 kfree(kkey); in pkey_unlocked_ioctl()
1576 kfree(kkey); in pkey_unlocked_ioctl()
1579 if (copy_to_user(kcs.key, kkey, klen)) { in pkey_unlocked_ioctl()
1580 kfree(kkey); in pkey_unlocked_ioctl()
1588 kfree(kkey); in pkey_unlocked_ioctl()
1594 u8 *kkey; in pkey_unlocked_ioctl() local
1598 kkey = _copy_key_from_user(kvk.key, kvk.keylen); in pkey_unlocked_ioctl()
1599 if (IS_ERR(kkey)) in pkey_unlocked_ioctl()
1600 return PTR_ERR(kkey); in pkey_unlocked_ioctl()
1601 rc = pkey_verifykey2(kkey, kvk.keylen, in pkey_unlocked_ioctl()
1605 kfree(kkey); in pkey_unlocked_ioctl()
1616 u8 *kkey; in pkey_unlocked_ioctl() local
1623 kkey = _copy_key_from_user(ktp.key, ktp.keylen); in pkey_unlocked_ioctl()
1624 if (IS_ERR(kkey)) { in pkey_unlocked_ioctl()
1626 return PTR_ERR(kkey); in pkey_unlocked_ioctl()
1630 kkey, ktp.keylen, in pkey_unlocked_ioctl()
1635 memzero_explicit(kkey, ktp.keylen); in pkey_unlocked_ioctl()
1636 kfree(kkey); in pkey_unlocked_ioctl()
1648 u8 *kkey; in pkey_unlocked_ioctl() local
1660 kkey = _copy_key_from_user(kak.key, kak.keylen); in pkey_unlocked_ioctl()
1661 if (IS_ERR(kkey)) { in pkey_unlocked_ioctl()
1663 return PTR_ERR(kkey); in pkey_unlocked_ioctl()
1665 rc = pkey_apqns4key(kkey, kak.keylen, kak.flags, in pkey_unlocked_ioctl()
1668 kfree(kkey); in pkey_unlocked_ioctl()
1739 u8 *kkey, *protkey; in pkey_unlocked_ioctl() local
1746 kkey = _copy_key_from_user(ktp.key, ktp.keylen); in pkey_unlocked_ioctl()
1747 if (IS_ERR(kkey)) { in pkey_unlocked_ioctl()
1749 return PTR_ERR(kkey); in pkey_unlocked_ioctl()
1754 kfree(kkey); in pkey_unlocked_ioctl()
1758 kkey, ktp.keylen, in pkey_unlocked_ioctl()
1762 memzero_explicit(kkey, ktp.keylen); in pkey_unlocked_ioctl()
1763 kfree(kkey); in pkey_unlocked_ioctl()