public void Test(string keyHex, string ivHex, string hex, string hex2) { var key = keyHex.FromHex(); var iv = ivHex.FromHex(); Test(StreamCryptoCreate.AesCtr(key, iv), hex, hex2); }
public void AESCTR() { Test(StreamCryptoCreate.AesCtr(_randomKey16, _randomIv16), _randombytes.Span); }
protected override IStreamCrypto CreateCrypto(bool isEncrypt, ReadOnlySpan <byte> key, ReadOnlySpan <byte> iv) { return(StreamCryptoCreate.AesCtr(key, iv)); }