示例#1
0
 public static IStreamCrypto AesCtr(ReadOnlySpan <byte> key, ReadOnlySpan <byte> iv)
 {
     return(BlockCryptoModeCreate.Ctr(AESUtils.CreateECB(key), iv));
 }
示例#2
0
 public void Encrypt()
 {
     TestEncrypt(new GcmCryptoMode(AESUtils.CreateECB(_randomKey)));
 }