示例#1
0
文件: AES.cs 项目: wolfauraz/pk3DS
 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();
 }
示例#2
0
文件: AES.cs 项目: wolfauraz/pk3DS
 public AesCtr(byte[] key, byte[] iv)
 {
     Aes.Key     = key;
     Aes.Mode    = CipherMode.ECB;
     Aes.Padding = PaddingMode.None;
     Counter     = new AesCounter(iv);
     Encryptor   = Aes.CreateEncryptor();
 }