Exemple #1
0
 protected override void ForceEncryption()
 {
     CryptoHelper.GenerateIVAndEncrypt(_algorithm, _buffer, out _iv, out _cipherText);
     State   = EncryptionState.Encrypted;
     _buffer = new ArraySegment <byte>(CryptoHelper.EmptyBuffer);
 }
Exemple #2
0
 protected override void ForceEncryption()
 {
     CryptoHelper.GenerateIVAndEncrypt(this.algorithm, this.buffer, out this.iv, out this.cipherText);
     this.State  = EncryptionState.Encrypted;
     this.buffer = new ArraySegment <byte>(CryptoHelper.EmptyBuffer);
 }