Example #1
0
 public CmacTdes(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory)
 {
     Engine   = engineFactory.GetSymmetricCipherPrimitive(BlockCipherEngines.Tdes);
     AlgoMode = modeFactory.GetStandardCipher(Engine, BlockCipherModesOfOperation.Ecb);
 }
Example #2
0
 public EcbBlockCipher(IBlockCipherEngine engine) : base(engine)
 {
 }
Example #3
0
 public XtsBlockCipher(IBlockCipherEngine engine)
 {
     _engine = engine;
 }
Example #4
0
 public CtrBlockCipher(IBlockCipherEngine engine, ICounter counter)
     : base(engine)
 {
     _counter = counter;
 }
Example #5
0
 public ICounterModeBlockCipher GetIvExtractor(IBlockCipherEngine engine)
 {
     return(new CtrBlockCipher(engine, null));
 }
 public CbcMacBlockCipher(IBlockCipherEngine engine) : base(engine)
 {
 }
Example #7
0
 public Ff3BlockCipher(IBlockCipherEngine engine, IModeBlockCipherFactory factory, IAesFfInternals ffInternals)
     : base(engine, factory, ffInternals)
 {
 }
Example #8
0
 public IModeBlockCipher <SymmetricCounterResult> GetCounterCipher(IBlockCipherEngine engine, ICounter counter)
 {
     return(new CtrBlockCipher(engine, counter));
 }
Example #9
0
 public void TransformCiphertext(byte[] ciphertext, IBlockCipherEngine engine, int numberOfBlocks, int originalPayloadBitLength)
 {
     TransformText(ciphertext, engine, numberOfBlocks, originalPayloadBitLength);
 }
 public ShiftRegisterStrategyFullBlock(IBlockCipherEngine engine)
 {
     _engine = engine;
 }
 public ShiftRegisterStrategyByte(IBlockCipherEngine engine)
 {
     _engine = engine;
 }
 public CbcCtsBlockCipher(IBlockCipherEngine engine, ICiphertextStealingTransform ciphertextStealingTransform) :
     base(engine)
 {
     _ciphertextStealingTransform = ciphertextStealingTransform;
 }
Example #13
0
 public CfbBlockCipher(IBlockCipherEngine engine, IShiftRegisterStrategy shiftRegisterStrategy) : base(engine)
 {
     _shiftRegisterStrategy = shiftRegisterStrategy;
 }