1 /*
2 * Copyright (c) 2017-2021 Eugene Syromyatnikov <evgsyr@gmail.com>
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7
8 #ifndef STRACE_KEYCTL_KDF_PARAMS_H
9 # define STRACE_KEYCTL_KDF_PARAMS_H
10
11 # include <stdint.h>
12 # include "kernel_types.h"
13 # include <linux/keyctl.h>
14
15 /* from include/linux/crypto.h */
16 # define CRYPTO_MAX_ALG_NAME 128
17
18 /* from security/keys/internal.h */
19 # define KEYCTL_KDF_MAX_OI_LEN 64 /* max length of otherinfo */
20
21 struct strace_keyctl_kdf_params {
22 kernel_ulong_t hashname;
23 kernel_ulong_t otherinfo;
24 uint32_t otherinfolen;
25 uint32_t __spare[8];
26 };
27
28 #endif /* STRACE_KEYCTL_KDF_PARAMS_H */