projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37d52bf
)
Allow repair of 512bits key header.
author
Milan Broz
<gmazyland@gmail.com>
Sun, 30 Dec 2012 17:32:10 +0000
(18:32 +0100)
committer
Milan Broz
<gmazyland@gmail.com>
Sun, 30 Dec 2012 17:32:10 +0000
(18:32 +0100)
lib/luks1/keymanage.c
patch
|
blob
|
history
diff --git
a/lib/luks1/keymanage.c
b/lib/luks1/keymanage.c
index
d82c471
..
d51b3a5
100644
(file)
--- 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;
}