Пример #1
0
        public void TestCShakeWithN()
        {
            ExpectedString = XofOfZeroToOneHundredAndNinetyNine;
            ActualString   = XofInstanceCShakeWithN.ComputeBytes(ZeroToOneHundredAndNinetyNineBytes)
                             .ToString();

            AssertAreEqual(ExpectedString, ActualString);
        }
Пример #2
0
        public void TestCShakeWithNIncremental()
        {
            ExpectedString = XofOfZeroToOneHundredAndNinetyNine;
            XofInstanceCShakeWithN.Initialize();
            XofInstanceCShakeWithN.TransformBytes(ZeroToOneHundredAndNinetyNineBytes);
            ActualString = XofInstanceCShakeWithN.TransformFinal().ToString();

            AssertAreEqual(ExpectedString, ActualString);
        }