Allow repair of 512bits key header.
authorMilan Broz <gmazyland@gmail.com>
Sun, 30 Dec 2012 17:32:10 +0000 (18:32 +0100)
committerMilan Broz <gmazyland@gmail.com>
Sun, 30 Dec 2012 17:32:10 +0000 (18:32 +0100)
lib/luks1/keymanage.c

index d82c471..d51b3a5 100644 (file)
@@ -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;
        }