From 918c1a6de1638634634c22bdd8daf27abc3b8abe Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Sun, 30 Dec 2012 18:32:10 +0100 Subject: [PATCH] Allow repair of 512bits key header. --- lib/luks1/keymanage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/luks1/keymanage.c b/lib/luks1/keymanage.c index d82c471..d51b3a5 100644 --- a/lib/luks1/keymanage.c +++ b/lib/luks1/keymanage.c @@ -319,7 +319,7 @@ static int _keyslot_repair(struct luks_phdr *phdr, struct crypt_device *ctx) uint64_t PBKDF2_per_sec = 1; int i, bad, r, need_write = 0; - if (phdr->keyBytes != 16 && phdr->keyBytes != 32) { + if (phdr->keyBytes != 16 && phdr->keyBytes != 32 && phdr->keyBytes != 64) { log_err(ctx, _("Non standard key size, manual repair required.\n")); return -EINVAL; } -- 2.7.4