TCRYPT: parse cipher chain on init.
[platform/upstream/cryptsetup.git] / lib / internal.h
index 2d7b5db..f621ca0 100644 (file)
@@ -84,6 +84,7 @@ int device_block_adjust(struct crypt_device *cd,
                        uint64_t device_offset,
                        uint64_t *size,
                        uint32_t *flags);
+size_t size_round_up(size_t size, unsigned int block);
 
 /* Receive backend devices from context helpers */
 struct device *crypt_metadata_device(struct crypt_device *cd);
@@ -99,7 +100,7 @@ ssize_t read_blockwise(int fd, int bsize, void *_buf, size_t count);
 ssize_t write_lseek_blockwise(int fd, int bsize, char *buf, size_t count, off_t offset);
 
 unsigned crypt_getpagesize(void);
-
+int init_crypto(struct crypt_device *ctx);
 
 void logger(struct crypt_device *cd, int class, const char *file, int line, const char *format, ...);
 #define log_dbg(x...) logger(NULL, CRYPT_LOG_DEBUG, __FILE__, __LINE__, x)