protected void VerifyMultiBlock(string block1, string block2, string expectedHash, string emptyHash) { byte[] block1_bytes = ByteUtils.AsciiBytes(block1); byte[] block2_bytes = ByteUtils.AsciiBytes(block2); byte[] expected_bytes = ByteUtils.HexToByteArray(expectedHash); byte[] emptyHash_bytes = ByteUtils.HexToByteArray(emptyHash); VerifyTransformBlockOutput(block1_bytes, block2_bytes); VerifyTransformBlockHash(block1_bytes, block2_bytes, expected_bytes, emptyHash_bytes); VerifyTransformBlockComputeHashInteraction(block1_bytes, block2_bytes, expected_bytes, emptyHash_bytes); }
public DataRepeatingStream(string data, int repeatCount) { _remaining = repeatCount; _data = ByteUtils.AsciiBytes(data); }
protected void Verify(string input, string output) { Verify(ByteUtils.AsciiBytes(input), output); }