Example #1
0
        protected FfxBlockCipherBase(IBlockCipherEngine engine, IModeBlockCipherFactory factory, IAesFfInternals ffInternals)
        {
            // FFX only valid for AES
            if (engine.BlockSizeBits != 128)
            {
                throw new ArgumentException("FFX Mode(s) only valid with AES Engine");
            }

            _engine      = engine;
            _factory     = factory;
            _ffInternals = ffInternals;
        }
Example #2
0
 public Ff3BlockCipher(IBlockCipherEngine engine, IModeBlockCipherFactory factory, IAesFfInternals ffInternals)
     : base(engine, factory, ffInternals)
 {
 }
 public FfxModeBlockCipherFactory(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory, IAesFfInternals aesFfInternals)
 {
     _engineFactory  = engineFactory;
     _modeFactory    = modeFactory;
     _aesFfInternals = aesFfInternals;
 }