Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

keyctl_kdf_params.h 734B

12345678910111213141516171819202122232425262728293031323334
  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. #ifndef STRACE_KEYCTL_KDF_PARAMS_H
  8. # define STRACE_KEYCTL_KDF_PARAMS_H
  9. # include <stdint.h>
  10. # include "kernel_types.h"
  11. /* from include/linux/crypto.h */
  12. # define CRYPTO_MAX_ALG_NAME 128
  13. /* from security/keys/internal.h */
  14. # define KEYCTL_KDF_MAX_OI_LEN 64 /* max length of otherinfo */
  15. struct keyctl_kdf_params {
  16. char *hashname;
  17. char *otherinfo;
  18. uint32_t otherinfolen;
  19. uint32_t __spare[8];
  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. #endif /* STRACE_KEYCTL_KDF_PARAMS_H */