public RijindaelCipher2(byte[] key, byte[] iv) { _rijindael = new Rijndael(); _rijindael.SetIV(iv); _rijindael.InitializeKey(key); }
public RijindaelCipher2(byte[] key, byte[] iv, CipherAlgorithm algorithm) { _rijindael = new Rijndael(); _rijindael.SetIV(iv); _rijindael.InitializeKey(key); if (algorithm == CipherAlgorithm.AES256CTR || algorithm == CipherAlgorithm.AES192CTR || algorithm == CipherAlgorithm.AES128CTR) isCTR = true; else isCTR = false; }