2 * Copyright (c) 2017-2018 Eugene Syromyatnikov <evgsyr@gmail.com>
5 * SPDX-License-Identifier: LGPL-2.1-or-later
8 #ifndef STRACE_KEYCTL_KDF_PARAMS_H
9 # define STRACE_KEYCTL_KDF_PARAMS_H
12 # include "kernel_types.h"
14 /* from include/linux/crypto.h */
15 # define CRYPTO_MAX_ALG_NAME 128
17 /* from security/keys/internal.h */
18 # define KEYCTL_KDF_MAX_OI_LEN 64 /* max length of otherinfo */
20 struct keyctl_kdf_params {
23 uint32_t otherinfolen;
27 struct strace_keyctl_kdf_params {
28 kernel_ulong_t hashname;
29 kernel_ulong_t otherinfo;
30 uint32_t otherinfolen;
34 #endif /* STRACE_KEYCTL_KDF_PARAMS_H */