Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CfbMode"/> class.
 /// </summary>
 /// <param name="cipher">The cipher.</param>
 public CfbMode(CipherBase cipher)
     : base(cipher)
 {
     this._blockSize = cipher.BlockSize;
     this._iv = cipher.IV.ToArray();
     this._ivOutput = new byte[this._iv.Length];
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ModeBase"/> class.
 /// </summary>
 /// <param name="cipher">The cipher.</param>
 public ModeBase(CipherBase cipher)
     : base(cipher.Key, cipher.IV)
 {
     this.Cipher = cipher;
 }