TCRYPT: support keyfiles
[platform/upstream/cryptsetup.git] / lib / utils_crypt.h
index 7c4cb1c..9bf8ab4 100644 (file)
@@ -26,6 +26,7 @@
 
 #define MAX_CIPHER_LEN         32
 #define MAX_CIPHER_LEN_STR     "32"
+#define MAX_KEYFILES           32
 
 struct crypt_device;
 
@@ -44,5 +45,6 @@ void crypt_safe_free(void *data);
 void *crypt_safe_realloc(void *data, size_t size);
 
 ssize_t crypt_hex_to_bytes(const char *hex, char **result, int safe_alloc);
+int crypt_string_to_size(struct crypt_device *cd, const char *s, uint64_t *size);
 
 #endif /* _UTILS_CRYPT_H */