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