Example #1
0
 public AesCtr(byte[] key, ulong PartitionID, ulong InitialCount)
 {
     Aes.Key     = key;
     Aes.Mode    = CipherMode.ECB;
     Aes.Padding = PaddingMode.None;
     Counter     = new AesCounter(PartitionID, InitialCount);
     Encryptor   = Aes.CreateEncryptor();
 }
Example #2
0
 public AesCtr(byte[] key, byte[] iv)
 {
     Aes.Key     = key;
     Aes.Mode    = CipherMode.ECB;
     Aes.Padding = PaddingMode.None;
     Counter     = new AesCounter(iv);
     Encryptor   = Aes.CreateEncryptor();
 }
Example #3
0
 public AesCtr(byte[] key, ulong PartitionID, ulong InitialCount)
 {
     Aes.Key = key;
     Aes.Mode = CipherMode.ECB;
     Aes.Padding = PaddingMode.None;
     Counter = new AesCounter(PartitionID, InitialCount);
     Encryptor = Aes.CreateEncryptor();
 }
Example #4
0
 public AesCtr(byte[] key, byte[] iv)
 {
     Aes.Key = key;
     Aes.Mode = CipherMode.ECB;
     Aes.Padding = PaddingMode.None;
     Counter = new AesCounter(iv);
     Encryptor = Aes.CreateEncryptor();
 }