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