Use struct volume key thorough.
[platform/upstream/cryptsetup.git] / lib / loopaes / loopaes.h
1 #ifndef _LOOPAES_H
2 #define _LOOPAES_H
3
4 #include <unistd.h>
5 #include "config.h"
6
7 struct crypt_device;
8 struct volume_key;
9
10 #define LOOPAES_KEYS_MAX 65
11
12 int LOOPAES_parse_keyfile(struct crypt_device *cd,
13                           struct volume_key **vk,
14                           const char *hash,
15                           unsigned int *keys_count,
16                           char *buffer,
17                           size_t buffer_len);
18
19 int LOOPAES_activate(struct crypt_device *cd,
20                      const char *name,
21                      const char *base_cipher,
22                      unsigned int keys_count,
23                      struct volume_key *vk,
24                      uint64_t skip,
25                      uint32_t flags);
26 #endif