(self)
| 215 | self.assertEqual(decryptedKey, self.adminMasterKey) |
| 216 | |
| 217 | def test_decryptCredential(self): |
| 218 | credFile = CredentialFile(self.credentialFile) |
| 219 | credFile.dump() |
| 220 | blob = DPAPI_BLOB(credFile['Data']) |
| 221 | decrypted = blob.decrypt(self.adminMasterKey) |
| 222 | creds = CREDENTIAL_BLOB(decrypted) |
| 223 | creds.dump() |
| 224 | self.assertEqual(creds['Username'], self.username.encode('utf-16le')) |
| 225 | |
| 226 | @pytest.mark.skipif(os.name != "nt", reason="Only Windows") |
| 227 | def test_dumpBlobProtectAPI(self): |
nothing calls this directly
no test coverage detected