| 273 | self.decryptedKey = None |
| 274 | |
| 275 | def dump(self): |
| 276 | print("[MASTERKEY]") |
| 277 | print("Version : %8x (%d)" % (self['Version'], self['Version'])) |
| 278 | print("Salt : %s" % hexlify(self['Salt'])) |
| 279 | print("Rounds : %8x (%d)" % (self['MasterKeyIterationCount'], self['MasterKeyIterationCount'])) |
| 280 | print("HashAlgo : %.8x (%d) (%s)" % (self['HashAlgo'], self['HashAlgo'], ALGORITHMS(self['HashAlgo']).name)) |
| 281 | print("CryptAlgo : %.8x (%d) (%s)" % (self['CryptAlgo'], self['CryptAlgo'], ALGORITHMS(self['CryptAlgo']).name)) |
| 282 | print("data : %s" % (hexlify(self['data']))) |
| 283 | print() |
| 284 | |
| 285 | def deriveKey(self, passphrase, salt, keylen, count, hashFunction): |
| 286 | keyMaterial = b"" |