Ejemplo n.º 1
0
 public CmacTdes(IBlockCipherEngineFactory engineFactory, IModeBlockCipherFactory modeFactory)
 {
     Engine   = engineFactory.GetSymmetricCipherPrimitive(BlockCipherEngines.Tdes);
     AlgoMode = modeFactory.GetStandardCipher(Engine, BlockCipherModesOfOperation.Ecb);
 }
Ejemplo n.º 2
0
 public EcbBlockCipher(IBlockCipherEngine engine) : base(engine)
 {
 }
Ejemplo n.º 3
0
 public XtsBlockCipher(IBlockCipherEngine engine)
 {
     _engine = engine;
 }
Ejemplo n.º 4
0
 public CtrBlockCipher(IBlockCipherEngine engine, ICounter counter)
     : base(engine)
 {
     _counter = counter;
 }
Ejemplo n.º 5
0
 public ICounterModeBlockCipher GetIvExtractor(IBlockCipherEngine engine)
 {
     return(new CtrBlockCipher(engine, null));
 }
Ejemplo n.º 6
0
 public CbcMacBlockCipher(IBlockCipherEngine engine) : base(engine)
 {
 }
Ejemplo n.º 7
0
 public Ff3BlockCipher(IBlockCipherEngine engine, IModeBlockCipherFactory factory, IAesFfInternals ffInternals)
     : base(engine, factory, ffInternals)
 {
 }
Ejemplo n.º 8
0
 public IModeBlockCipher <SymmetricCounterResult> GetCounterCipher(IBlockCipherEngine engine, ICounter counter)
 {
     return(new CtrBlockCipher(engine, counter));
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 12
0
 public CbcCtsBlockCipher(IBlockCipherEngine engine, ICiphertextStealingTransform ciphertextStealingTransform) :
     base(engine)
 {
     _ciphertextStealingTransform = ciphertextStealingTransform;
 }
Ejemplo n.º 13
0
 public CfbBlockCipher(IBlockCipherEngine engine, IShiftRegisterStrategy shiftRegisterStrategy) : base(engine)
 {
     _shiftRegisterStrategy = shiftRegisterStrategy;
 }