コード例 #1
0
        public void ComputeHash_AMillionATest()
        {
            byte[] actualHash   = Ripemd160Fo.ComputeHash_Static(HashTestCaseHelper.GetAMillionA());
            byte[] expectedHash = Helper.HexToBytes("52783243c1697bdbe16d37f97f68f08325dc1528");

            Assert.Equal(expectedHash, actualHash);
        }
コード例 #2
0
        public void ComputeHash_AMillionATest()
        {
            byte[] actualHash   = Sha512Fo.ComputeHash(HashTestCaseHelper.GetAMillionA());
            byte[] expectedHash = Helper.HexToBytes("e718483d0ce769644e2e42c7bc15b4638e1f98b13b2044285632a803afa973ebde0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b");

            Assert.Equal(expectedHash, actualHash);
        }
コード例 #3
0
 public void ComputeHash_AMillionATest()
 {
     byte[] actualHash   = Sha256Fo.ComputeHash(HashTestCaseHelper.GetAMillionA());
     byte[] expectedHash = Helper.HexToBytes("cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0");
     Assert.Equal(expectedHash, actualHash);
 }