Fix uninteded change in keysize.
authorMilan Broz <gmazyland@gmail.com>
Fri, 23 Oct 2009 16:24:50 +0000 (16:24 +0000)
committerMilan Broz <gmazyland@gmail.com>
Fri, 23 Oct 2009 16:24:50 +0000 (16:24 +0000)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@135 36d66b0a-2a48-0410-832c-cd162a569da5

lib/setup.c

index 8a6282d..13db12f 100644 (file)
@@ -2021,7 +2021,7 @@ const char *crypt_get_uuid(struct crypt_device *cd)
 int crypt_get_volume_key_size(struct crypt_device *cd)
 {
        if (isPLAIN(cd->type))
-               return cd->volume_key->keyLength / 8;
+               return cd->volume_key->keyLength;
 
        if (isLUKS(cd->type))
                return cd->hdr.keyBytes;