Change License from GPLv2 only to GPLv2+ ("or any later").
[platform/upstream/cryptsetup.git] / lib / luks1 / luks.h
index 8491032..6d6c74c 100644 (file)
@@ -6,7 +6,8 @@
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -175,14 +176,16 @@ int LUKS_keyslot_area(struct luks_phdr *hdr,
 
 int LUKS_encrypt_to_storage(
        char *src, size_t srcLength,
-       struct luks_phdr *hdr,
+       const char *cipher,
+       const char *cipher_mode,
        struct volume_key *vk,
        unsigned int sector,
        struct crypt_device *ctx);
 
 int LUKS_decrypt_from_storage(
        char *dst, size_t dstLength,
-       struct luks_phdr *hdr,
+       const char *cipher,
+       const char *cipher_mode,
        struct volume_key *vk,
        unsigned int sector,
        struct crypt_device *ctx);