public DecryptAesEntryWorkflowBuilder()
 {
     _segmentEncryptionAlgo = new AesSegmentEncryptionAlgo(new AesAlgo());
     _keyLoader             = LoadKeyFromXmlFileFactory.GetAesKeyLoader();
     _datLoader             = DatFromXmlFileFactory.GetDatLoader();
     _auditLogger           = new NullAuditLogger <AesKey, DecryptEntryWorkflowOptions>();
 }
Beispiel #2
0
        public IDecryptPlainTextEntryWorkflowBuilder Build()
        {
            var entriesDecrypter = new EntriesDecrypter <PlainTextKey>(
                new PlainTextKeySuitabilityChecker(),
                new Utf16LittleEndianUserStringConverter(),
                new PlainTextSegmentEncryptionAlgo());

            _workflow = new DecryptPlainTextEntryWorkflow <PlainTextKey, DecryptPlainTextEntryWorkflowOptions>(_datLoader, entriesDecrypter, _auditLogger, LoadKeyFromXmlFileFactory.GetPlainTextKeyLoader());
            IsBuilt   = true;
            return(this);
        }
Beispiel #3
0
 public AddAesEntryBuilder()
 {
     _keyLoader = LoadKeyFromXmlFileFactory.GetAesKeyLoader();
     _datLoader = DatFromXmlFileFactory.GetDatLoader();
     _datSaver  = DatXmlFileSaverFactory.GetDatSaver();
 }
 public DecryptRsaEntryWorkflowBuilder()
 {
     _keyLoader   = LoadKeyFromXmlFileFactory.GetRsaKeyLoader();
     _datLoader   = DatFromXmlFileFactory.GetDatLoader();
     _auditLogger = new NullAuditLogger <RsaKey, DecryptEntryWorkflowOptions>();
 }