]> granicus.if.org Git - strace/blob - keyctl_kdf_params.h
Remove XLAT_END
[strace] / keyctl_kdf_params.h
1 /*
2  * Copyright (c) 2017-2018 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
14 /* from include/linux/crypto.h */
15 # define CRYPTO_MAX_ALG_NAME            128
16
17 /* from security/keys/internal.h */
18 # define KEYCTL_KDF_MAX_OI_LEN          64      /* max length of otherinfo */
19
20 struct keyctl_kdf_params {
21         char *hashname;
22         char *otherinfo;
23         uint32_t otherinfolen;
24         uint32_t __spare[8];
25 };
26
27 struct strace_keyctl_kdf_params {
28         kernel_ulong_t hashname;
29         kernel_ulong_t otherinfo;
30         uint32_t otherinfolen;
31         uint32_t __spare[8];
32 };
33
34 #endif /* STRACE_KEYCTL_KDF_PARAMS_H */