示例#1
0
 public static IStreamCrypto AesCfb(bool isEncrypt, byte[] key, byte[] iv)
 {
     return(new CFB128StreamMode(isEncrypt, AESUtils.CreateECB(key), iv));
 }
示例#2
0
 public static IStreamCrypto AesCtr(byte[] key, byte[] iv)
 {
     return(new CTRStreamMode(AESUtils.CreateECB(key), iv));
 }