Exemplo n.º 1
0
 def __init__(self, dpapiblob):
     self.dpapiblob = DPAPI_BLOB_STRUCT.parse(dpapiblob)
     self.decrypted = False
     self.cleartext = None
     self.blob = self.dpapiblob.blob
     self.blob_not_modified = DPAPI_BLOB.build(self.blob)
     self.blob.hashAlgo = crypto.CryptoAlgo(self.blob.hashAlgo)
     self.blob.cipherAlgo = crypto.CryptoAlgo(self.blob.cipherAlgo)
     self.mkguid = self.guid_to_str(self.blob.mkblob)
Exemplo n.º 2
0
 def _decode(self, obj, context, path):
     return crypto.CryptoAlgo(obj)