public void HashStreamWithEmptyString() { string startString = ""; using (Stream temp = new MemoryStream(Encoding.UTF8.GetBytes(startString))) { Assert.AreEqual(@"DldRwCblQ7Loqy6wYJnaodHl30d3j3eH-qtFzfEv46g", BerTlvLogic.ComputeBase64Blake2bHashInBuffers(temp)); } }
public void HashStreamWithSmallBuffer() { string startString = "6EF72AC5367180EB.BDADB4E0.DE60.40D4241E426BBDE12BCA805F665227E8.34EC.8394B17AC3"; using (Stream temp = new MemoryStream(Encoding.UTF8.GetBytes(startString))) { Assert.AreEqual(@"EQ9q1Hjyr_pfSBj1_M2vqAMFH-MYhP2zwhgYfC8u8-g", BerTlvLogic.ComputeBase64Blake2bHashInBuffers(temp, 32, 1)); } }