File cryptsetup-use_nonequal_xts_key_parts.patch of Package cryptsetup
Index: cryptsetup-1.6.4/lib/luks1/keymanage.c
===================================================================
--- cryptsetup-1.6.4.orig/lib/luks1/keymanage.c 2014-01-29 21:30:39.000000000 +0100
+++ cryptsetup-1.6.4/lib/luks1/keymanage.c 2017-05-19 21:24:00.974479219 +0200
@@ -609,7 +609,7 @@ static int LUKS_check_cipher(struct luks
log_dbg("Checking if cipher %s-%s is usable.", hdr->cipherName, hdr->cipherMode);
- empty_key = crypt_alloc_volume_key(hdr->keyBytes, NULL);
+ empty_key = crypt_alloc_volume_key(hdr->keyBytes, hdr->keyBytes >= 4 ? "key" : NULL);
if (!empty_key)
return -ENOMEM;