Beispiel #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();
 }
Beispiel #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();
 }
Beispiel #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();
 }
Beispiel #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();
 }