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(); }
public AesCtr(byte[] key, byte[] iv) { Aes.Key = key; Aes.Mode = CipherMode.ECB; Aes.Padding = PaddingMode.None; Counter = new AesCounter(iv); Encryptor = Aes.CreateEncryptor(); }