TCRYPT: fix activation and hidden device offsets.
[platform/upstream/cryptsetup.git] / lib / tcrypt / tcrypt.h
index d62ebe5..d67f8f1 100644 (file)
@@ -91,8 +91,13 @@ int TCRYPT_activate(struct crypt_device *cd,
 int TCRYPT_deactivate(struct crypt_device *cd,
                      const char *name);
 
-uint64_t TCRYPT_get_data_offset(struct tcrypt_phdr *hdr);
-uint64_t TCRYPT_get_iv_offset(struct tcrypt_phdr *hdr);
+uint64_t TCRYPT_get_data_offset(struct crypt_device *cd,
+                               struct tcrypt_phdr *hdr,
+                               struct crypt_params_tcrypt *params);
+
+uint64_t TCRYPT_get_iv_offset(struct crypt_device *cd,
+                             struct tcrypt_phdr *hdr,
+                             struct crypt_params_tcrypt *params);
 
 int TCRYPT_get_volume_key(struct crypt_device *cd,
                          struct tcrypt_phdr *hdr,