Skip to content

Commit

Permalink
Merge pull request sleuthkit#2927 from APriestman/fixXTS256
Browse files Browse the repository at this point in the history
Fix BitLocker key length for XTS 256 bit
  • Loading branch information
jayaramcs authored Jun 24, 2024
2 parents 0d1c84e + 5bb32a6 commit 4f9358b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsk/util/Bitlocker/BitlockerParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ BITLOCKER_STATUS BitlockerParser::setKeys(MetadataValueKey* fvek, BITLOCKER_ENCR
return BITLOCKER_STATUS::GENERAL_ERROR;
}

ret = mbedtls_aes_xts_setkey_dec(&m_aesXtsDecryptionContext, &(keyBytes[0]), 256);
ret = mbedtls_aes_xts_setkey_dec(&m_aesXtsDecryptionContext, &(keyBytes[0]), 512);

if (ret != 0) {
writeError("BitlockerParser::setKeys: Error setting AES context");
Expand Down

0 comments on commit 4f9358b

Please sign in to comment.