1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 3 * Kernelspace interface to the pkey device dr 4 * 5 * Copyright IBM Corp. 2016, 2023 6 * 7 * Author: Harald Freudenberger <freude@de.ibm 8 * 9 */ 10 11 #ifndef _KAPI_PKEY_H 12 #define _KAPI_PKEY_H 13 14 #include <linux/ioctl.h> 15 #include <linux/types.h> 16 #include <uapi/asm/pkey.h> 17 18 /* 19 * In-kernel API: Transform an key blob (of an 20 * @param key pointer to a buffer containing t 21 * @param keylen size of the key blob in bytes 22 * @param protkey pointer to buffer receiving 23 * @return 0 on success, negative errno value 24 */ 25 int pkey_key2protkey(const u8 *key, u32 keylen 26 u8 *protkey, u32 *protkey 27 28 #endif /* _KAPI_PKEY_H */ 29
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.