public void Lyra2Rev3_Hash() { var hasher = new Lyra2Rev3(); var hash = new byte[32]; hasher.Digest(Enumerable.Repeat((byte)5, 80).ToArray(), hash); var result = hash.ToHexString(); Assert.Equal("c56ec425ada2c8ddcb8d5a79a3a0c9d79f66318193049fb81f875c537a4f963d", result); }
public void Lyra2Rev3_Hash_Should_Throw_On_Short_Input() { var hasher = new Lyra2Rev3(); Assert.Throws <ArgumentException>(() => hasher.Digest(new byte[20], null)); }