Also support --hash option for loopaesOpen.
[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 #define LOOPAES_KEYS_MAX 65
8
9 int LOOPAES_parse_keyfile(struct crypt_device *cd,
10                           struct volume_key **vk,
11                           const char *hash,
12                           unsigned int *keys_count,
13                           char *buffer,
14                           size_t buffer_len);
15
16 int LOOPAES_activate(struct crypt_device *cd,
17                      const char *name,
18                      const char *base_cipher,
19                      unsigned int keys_count,
20                      struct volume_key *vk,
21                      uint64_t offset,
22                      uint64_t skip,
23                      uint32_t flags);
24 #endif