public PWDatabaseDataSource(IEncryptionEngine encryptionEngine,
     IKeyTransformer keyTransformer,
     IGZipStreamFactory gzipStreamFactory,
     ICanSHA256Hash hasher)
 {
     _hasher = hasher;
     _gzipStreamFactory = gzipStreamFactory;
     _keyTransformer = keyTransformer;
     _encryptionEngine = encryptionEngine;
 }
 public KdbWriterFactory(IEncryptionEngine databaseEncryptor, 
     IKeyTransformer keyTransformer, 
     ICanSHA256Hash hasher, 
     IGZipStreamFactory gzipFactory)
 {
     _gzipFactory = gzipFactory;
     _hasher = hasher;
     _keyTransformer = keyTransformer;
     _databaseEncryptor = databaseEncryptor;
 }
Exemple #3
0
 public Kdb4Reader(Kdb4File kdb4File, 
     IEncryptionEngine databaseDecryptor,
     IKeyTransformer keyTransformer, 
     ICanSHA256Hash hasher,
     IGZipStreamFactory gZipFactory)
 {            
     file = kdb4File;
     _encryptionEngine = databaseDecryptor;
     _keyTransformer = keyTransformer;
     _hasher = hasher;
     _gZipFactory = gZipFactory;
 }
Exemple #4
0
 public Kdb4Writer(Kdb4HeaderWriter headerWriter,
     IEncryptionEngine databaseEncryptor,
     IKeyTransformer keyTransformer,
     ICanSHA256Hash hasher,
     IGZipStreamFactory gZipFactory)
 {
     this._gZipFactory = gZipFactory;
     this._hasher = hasher;
     this._keyTransformer = keyTransformer;
     this._databaseEncryptor = databaseEncryptor;
     _headerWriter = headerWriter;
 }