public MonteCarloTdesCfbp(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory, IMonteCarloKeyMakerTdes keyMaker, BlockCipherModesOfOperation mode) { _algo = modeFactory.GetStandardCipher( engineFactory.GetSymmetricCipherPrimitive(BlockCipherEngines.Tdes), mode ); _keyMaker = keyMaker; switch (mode) { case BlockCipherModesOfOperation.CfbpBit: Shift = 1; break; case BlockCipherModesOfOperation.CfbpByte: Shift = 8; break; case BlockCipherModesOfOperation.CfbpBlock: Shift = 64; break; default: throw new ArgumentException(nameof(mode)); } }
public MonteCarloTdesCbci(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory, IMonteCarloKeyMakerTdes keyMaker) { _algo = modeFactory.GetStandardCipher( engineFactory.GetSymmetricCipherPrimitive(BlockCipherEngines.Tdes), BlockCipherModesOfOperation.Ecb ); _keyMaker = keyMaker; }
public MonteCarloAesCbcCts(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory, IMonteCarloKeyMakerAes keyMaker, BlockCipherModesOfOperation mode) { _algo = modeFactory.GetStandardCipher( engineFactory.GetSymmetricCipherPrimitive(BlockCipherEngines.Aes), mode ); _keyMaker = keyMaker; }
public MonteCarloTdesCfb( IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory, IMonteCarloKeyMakerTdes keyMaker, int shiftSize, BlockCipherModesOfOperation mode ) { _algo = modeFactory.GetStandardCipher( engineFactory.GetSymmetricCipherPrimitive(BlockCipherEngines.Tdes), mode ); _keyMaker = keyMaker; Shift = shiftSize; }
public MonteCarloAesCfb( IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory, IMonteCarloKeyMakerAes keyMaker, int shiftSize, BlockCipherModesOfOperation mode ) { var engine = engineFactory.GetSymmetricCipherPrimitive(BlockCipherEngines.Aes); _algo = modeFactory.GetStandardCipher( engine, mode ); _keyMaker = keyMaker; _blockSizeBits = engine.BlockSizeBits; Shift = shiftSize; }
public CmacFactory(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory) { _engineFactory = engineFactory; _modeFactory = modeFactory; }
public KeyWrapAes(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory cipherFactory) : base(engineFactory, cipherFactory) { }
public FakeDrbgCounterAes(IEntropyProvider entropyProvider, IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory cipherFactory, DrbgParameters drbgParameters) : base(entropyProvider, engineFactory, cipherFactory, drbgParameters) { }
public CmacTdes(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory) { Engine = engineFactory.GetSymmetricCipherPrimitive(BlockCipherEngines.Tdes); AlgoMode = modeFactory.GetStandardCipher(Engine, BlockCipherModesOfOperation.Ecb); }
public AesMonteCarloFactory(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory) { _engineFactory = engineFactory; _modeFactory = modeFactory; }
public DrbgCounterAes(IEntropyProvider entropyProvider, IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory cipherFactory, DrbgParameters drbgParameters) : base(entropyProvider, drbgParameters) { Cipher = cipherFactory.GetStandardCipher( engineFactory.GetSymmetricCipherPrimitive(BlockCipherEngines.Aes), BlockCipherModesOfOperation.Ecb); }
public AesFfInternals(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory) { _engineFactory = engineFactory; _modeFactory = modeFactory; }
public FfxModeBlockCipherFactory(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory, IAesFfInternals aesFfInternals) { _engineFactory = engineFactory; _modeFactory = modeFactory; _aesFfInternals = aesFfInternals; }
protected KeyWrapBaseAes(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory cipherFactory) { Cipher = cipherFactory.GetStandardCipher(engineFactory.GetSymmetricCipherPrimitive(BlockCipherEngines.Aes), BlockCipherModesOfOperation.Ecb); }
public AES_GCMInternals(IModeBlockCipherFactory modeFactory, IBlockCipherEngineFactory engineFactory) { _modeFactory = modeFactory; _engineFactory = engineFactory; }