def setUp(self):
    self._resolver_context = context.Context()
    test_file = os.path.join(u'test_data', u'syslog.aes')
    self._os_path_spec = os_path_spec.OSPathSpec(location=test_file)
    self._encrypted_stream_path_spec = (
        encrypted_stream_path_spec.EncryptedStreamPathSpec(
            encryption_method=definitions.ENCRYPTION_METHOD_AES,
            parent=self._os_path_spec))
    resolver.Resolver.key_chain.SetCredential(
        self._encrypted_stream_path_spec, u'key', self._AES_KEY)
    resolver.Resolver.key_chain.SetCredential(
        self._encrypted_stream_path_spec, u'initialization_vector',
        self._AES_IV)
    resolver.Resolver.key_chain.SetCredential(
        self._encrypted_stream_path_spec, u'mode', self._AES_MODE)
    self.padding_size = 1
Sets up the needed objects used throughout the test.
dataset/ETHPy150Open log2timeline/dfvfs/tests/file_io/encrypted_stream_io.py/AESEncryptedStreamTest.setUp