コード例 #1
0
 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;
     }
 }
コード例 #2
0
		public RijindaelCipher2(byte[] key, byte[] iv) {
			_rijindael = new Rijndael();
			_rijindael.SetIV(iv);
			_rijindael.InitializeKey(key);
		}
コード例 #3
0
 public RijindaelCipher2(byte[] key, byte[] iv)
 {
     _rijindael = new Rijndael();
     _rijindael.SetIV(iv);
     _rijindael.InitializeKey(key);
 }
コード例 #4
0
 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;
 }