20200611 check on checkMsg

This commit is contained in:
dfirfpi 2020-06-11 00:22:51 +02:00
parent a14390724e
commit 5c916ea2dd
No known key found for this signature in database
GPG Key ID: EC61291E5446B028

View File

@ -273,8 +273,10 @@ class Decryptor:
logging.debug('SHA256(BKEY)[%s] = %s', len(self._bkey_sha256), logging.debug('SHA256(BKEY)[%s] = %s', len(self._bkey_sha256),
binascii.hexlify(self._bkey_sha256)) binascii.hexlify(self._bkey_sha256))
salt = self._checkMsg[32:] # [TBR][TODO] This check should be refactored.
if salt: if self._checkMsg:
salt = self._checkMsg[32:]
logging.debug('SALT[%s] = %s', len(salt), binascii.hexlify(salt)) logging.debug('SALT[%s] = %s', len(salt), binascii.hexlify(salt))
res = PBKDF2(self._bkey, salt, Decryptor.dklen, Decryptor.count, res = PBKDF2(self._bkey, salt, Decryptor.dklen, Decryptor.count,