Increase maximum loopAES keyfile size.
[platform/upstream/cryptsetup.git] / lib / loopaes / loopaes.h
1 #ifndef _LOOPAES_H
2 #define _LOOPAES_H
3
4 #define LOOPAES_KEYS_MAX 65
5 #define LOOPAES_KEYFILE_MINSIZE 60
6 #define LOOPAES_KEYFILE_MAXSIZE 16000
7
8 int LOOPAES_parse_keyfile(struct crypt_device *cd,
9                           struct volume_key **vk,
10                           unsigned int *keys_count,
11                           char *buffer,
12                           unsigned int buffer_len);
13
14 int LOOPAES_activate(struct crypt_device *cd,
15                      const char *name,
16                      const char *base_cipher,
17                      unsigned int keys_count,
18                      struct volume_key *vk,
19                      uint32_t flags);
20 #endif