4 #define MAX_CIPHER_LEN 32
5 #define MAX_CIPHER_LEN_STR "32"
7 #define MAX_TTY_PASSWORD_LEN 512
11 int crypt_parse_name_and_mode(const char *s, char *cipher,
12 int *key_nums, char *cipher_mode);
14 int crypt_get_key(char *prompt, char **key, unsigned int *passLen, int key_size,
15 const char *key_file, int timeout, int how2verify,
16 struct crypt_device *cd);
18 void *crypt_safe_alloc(size_t size);
19 void crypt_safe_free(void *data);
20 void *crypt_safe_realloc(void *data, size_t size);
22 #endif /* _UTILS_CRYPT_H */