C# Class Metropass.Core.PCL.Model.Kdb4.Reader.Kdb4Reader

Inheritance: IKdbReader
Mostrar archivo Open project: TheAngryByrd/MetroPass

Public Methods

Method Description
ConfigureStream ( Stream decryptedDatabase ) : Stream
DecryptDatabase ( byte source, byte aesKey ) : Task
GenerateAESKey ( ) : Task
GenerateCryptoRandomStream ( ) : CryptoRandomStream
Kdb4Reader ( Kdb4File kdb4File, IEncryptionEngine databaseDecryptor, IKeyTransformer keyTransformer, ICanSHA256Hash hasher, IGZipStreamFactory gZipFactory ) : System
Load ( Stream source ) : Task
ReadHeader ( Stream reader ) : void
ReadHeaderField ( Stream reader ) : bool

Private Methods

Method Description
SetCipher ( byte pbID ) : void
SetCompressionFlags ( byte pbFlags ) : void
SetInnerRandomStreamID ( byte pbID ) : void

Method Details

ConfigureStream() public method

public ConfigureStream ( Stream decryptedDatabase ) : Stream
decryptedDatabase Stream
return Stream

DecryptDatabase() public method

public DecryptDatabase ( byte source, byte aesKey ) : Task
source byte
aesKey byte
return Task

GenerateAESKey() public method

public GenerateAESKey ( ) : Task
return Task

GenerateCryptoRandomStream() public method

public GenerateCryptoRandomStream ( ) : CryptoRandomStream
return Metropass.Core.PCL.Cipher.CryptoRandomStream

Kdb4Reader() public method

public Kdb4Reader ( Kdb4File kdb4File, IEncryptionEngine databaseDecryptor, IKeyTransformer keyTransformer, ICanSHA256Hash hasher, IGZipStreamFactory gZipFactory ) : System
kdb4File Kdb4File
databaseDecryptor IEncryptionEngine
keyTransformer IKeyTransformer
hasher ICanSHA256Hash
gZipFactory IGZipStreamFactory
return System

Load() public method

public Load ( Stream source ) : Task
source Stream
return Task

ReadHeader() public method

public ReadHeader ( Stream reader ) : void
reader Stream
return void

ReadHeaderField() public method

public ReadHeaderField ( Stream reader ) : bool
reader Stream
return bool