# Path: DPAPI/Core/credhist.py
# class RPC_SID(eater.DataStruct):
# class CredSystem(eater.DataStruct):
# class CredhistEntry(eater.DataStruct):
# class CredHistFile(eater.DataStruct):
#     def __init__(self, raw=None):
#     def parse(self, data):
#     def __str__(self):
#     def __repr__(self):
#     def __init__(self, raw=None):
#     def parse(self, data):
#     def __repr__(self):
#     def __init__(self, raw=None):
#     def __getstate__(self):
#     def __setstate__(self, d):
#     def parse(self, data):
#     def decryptWithKey(self, enckey):
#     def decryptWithHash(self, pwdhash):
#     def decryptWithPassword(self, password):
#     def jtr_shadow(self):
#     def __repr__(self):
#     def __init__(self, raw=None):
#     def parse(self, data):
#     def addEntry(self, blob):
#     def validate(self):
#     def decryptWithHash(self, h):
#     def decryptWithPassword(self, pwd):
#     def jtr_shadow(self, validonly=False):
#     def __repr__(self):


import unittest
import struct
from DPAPI.Core import credhist
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# ############################################################################
##                                                                         ##
## This file is part of DPAPIck                                            ##
## Windows DPAPI decryption & forensic toolkit                             ##
##                                                                         ##
##                                                                         ##
## Copyright (C) 2010, 2011 Cassidian SAS. All rights reserved.            ##
## This document is the property of Cassidian SAS, it may not be copied or ##
## circulated without prior licence                                        ##
##                                                                         ##
##  Author: Jean-Michel Picod <jmichel.p@gmail.com>                        ##
##                                                                         ##
## This program is distributed under GPLv3 licence (see LICENCE.txt)       ##
##                                                                         ##
#############################################################################



class RPC_SIDTest(unittest.TestCase):
    def test_parse(self):
        self.assertRaises(struct.error, credhist.RPC_SID, "")

# Path: DPAPI/Core/credhist.py
# class RPC_SID(eater.DataStruct):
# class CredSystem(eater.DataStruct):
# class CredhistEntry(eater.DataStruct):
# class CredHistFile(eater.DataStruct):
#     def __init__(self, raw=None):
#     def parse(self, data):
#     def __str__(self):
#     def __repr__(self):
#     def __init__(self, raw=None):
#     def parse(self, data):
#     def __repr__(self):
#     def __init__(self, raw=None):
#     def __getstate__(self):
#     def __setstate__(self, d):
#     def parse(self, data):
#     def decryptWithKey(self, enckey):
#     def decryptWithHash(self, pwdhash):
#     def decryptWithPassword(self, password):
#     def jtr_shadow(self):
#     def __repr__(self):
#     def __init__(self, raw=None):
#     def parse(self, data):
#     def addEntry(self, blob):
#     def validate(self):
#     def decryptWithHash(self, h):
#     def decryptWithPassword(self, pwd):
#     def jtr_shadow(self, validonly=False):
#     def __repr__(self):


# Path: tests/credhist.py
import unittest
import struct
from DPAPI.Core import credhist

#!/usr/bin/env python
# -*- coding: utf-8 -*-

# ############################################################################
##                                                                         ##
## This file is part of DPAPIck                                            ##
## Windows DPAPI decryption & forensic toolkit                             ##
##                                                                         ##
##                                                                         ##
## Copyright (C) 2010, 2011 Cassidian SAS. All rights reserved.            ##
## This document is the property of Cassidian SAS, it may not be copied or ##
## circulated without prior licence                                        ##
##                                                                         ##
##  Author: Jean-Michel Picod <jmichel.p@gmail.com>                        ##
##                                                                         ##
## This program is distributed under GPLv3 licence (see LICENCE.txt)       ##
##                                                                         ##
#############################################################################



class RPC_SIDTest(unittest.TestCase):
    def test_parse(self):
        self.assertRaises(struct.error, credhist.RPC_SID, "")

        r = credhist.RPC_SID("\x00" * 10)