Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Kernelspace interface to the pkey device driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright IBM Corp. 2016,2019
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * Author: Harald Freudenberger <freude@de.ibm.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifndef _KAPI_PKEY_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define _KAPI_PKEY_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/ioctl.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <uapi/asm/pkey.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  * In-kernel API: Transform an key blob (of any type) into a protected key.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  * @param key pointer to a buffer containing the key blob
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  * @param keylen size of the key blob in bytes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  * @param protkey pointer to buffer receiving the protected key
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)  * @return 0 on success, negative errno value on failure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) int pkey_keyblob2pkey(const u8 *key, u32 keylen,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 		      struct pkey_protkey *protkey);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #endif /* _KAPI_PKEY_H */