protected async Task VerifyRepeatingAsync(string input, int repeatCount, string hexKey, string output) { byte[] key = ByteUtils.HexToByteArray(hexKey); using (Stream stream = new DataRepeatingStream(input, repeatCount)) { await VerifyHashDataStreamAllocatingAsync(key, stream, output, memoryKey : true); } using (Stream stream = new DataRepeatingStream(input, repeatCount)) { await VerifyHashDataStreamAllocatingAsync(key, stream, output, memoryKey : false); } using (Stream stream = new DataRepeatingStream(input, repeatCount)) { await VerifyHashDataStreamAsync(key, stream, output); } }
protected void VerifyRepeating(string input, int repeatCount, string hexKey, string output) { byte[] key = ByteUtils.HexToByteArray(hexKey); using (Stream stream = new DataRepeatingStream(input, repeatCount)) { VerifyHashDataStreamAllocating(key, stream, output, spanKey: true); } using (Stream stream = new DataRepeatingStream(input, repeatCount)) { VerifyHashDataStreamAllocating(key, stream, output, spanKey: false); } using (Stream stream = new DataRepeatingStream(input, repeatCount)) { VerifyHashDataStream(key, stream, output); } }