7 #define MAX_CIPHER_LEN 32
8 #define MAX_CIPHER_LEN_STR "32"
12 int crypt_parse_name_and_mode(const char *s, char *cipher,
13 int *key_nums, char *cipher_mode);
15 int crypt_get_key(const char *prompt,
16 char **key, size_t *key_size,
17 size_t keyfile_size_max,
19 int timeout, int verify,
20 struct crypt_device *cd);
22 void *crypt_safe_alloc(size_t size);
23 void crypt_safe_free(void *data);
24 void *crypt_safe_realloc(void *data, size_t size);
26 #endif /* _UTILS_CRYPT_H */