public void Lyra2Rev2_Hash_Should_Match()
        {
            var hasher = new Lyra2Rev2();
            var result = hasher.Digest(Enumerable.Repeat((byte)5, 80).ToArray()).ToHexString();

            Assert.Equal("5cb1eea767131ab0ea446121854dffbfec1bf1f55938e9f877f9bae735a1c481", result);
        }
示例#2
0
        public void Lyra2Rev2_Hash_Should_Throw_On_Short_Input()
        {
            var hasher = new Lyra2Rev2();

            Assert.Throws <ArgumentException>(() => hasher.Digest(new byte[20], null));
        }
        public void Lyra2Rev2_Hash_Should_Throw_On_Null_Input()
        {
            var hasher = new Lyra2Rev2();

            Assert.Throws <ArgumentNullException>(() => hasher.Digest(null));
        }