コード例 #1
0
 public RijindaelCipher2(byte[] key, byte[] iv)
 {
     _rijindael = new Rijndael();
     _rijindael.SetIV(iv);
     _rijindael.InitializeKey(key);
 }
コード例 #2
0
ファイル: AlgorithmSupport.cs プロジェクト: FNKGino/poderosa
 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;
 }