mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 11:50:10 +01:00
Fix uninteded change in keysize.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@135 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user