Ejemplo n.º 1
0
        public void TestCNV1Throws()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "", "" }
            };

            HashTests.Test(testVectors, new CNV1());
        }
Ejemplo n.º 2
0
        public void TestCNV1PlatformIndependent()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "The quick brown fox jumps over the lazy dog", "94f5dec524fad6d32004c55c035e5ea223e7315be20e2dc5b8a0ac7464ffeb1f" },
                { "The quick brown fox jumps over the lazy dog.", "86d34efc73e709dcc0f862725be692d1f8c5b407b4d730cd309acf80cc8f7c73" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "246e1f4e7a61e0b29d4fefe33bb48b175468d28c0e44e84cb0cf244be8af9a12" },
            };

            HashTests.Test(testVectors, new CNV1(false));
        }
Ejemplo n.º 3
0
        public void TestCNLiteV1PlatformIndependent()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "The quick brown fox jumps over the lazy dog", "973a324237703e0f2ebe678a0000a00afb14c2c394c1859c84bcaa7b90bc56db" },
                { "The quick brown fox jumps over the lazy dog.", "b860f59d6aef32c7cacac02c4ac794066402dbd30c64c7fb733600a91441326d" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "f7a5217873b802940a629573f6a100deb25764af254f8f4fef1a8b9d51ef3cc5" },
            };

            HashTests.Test(testVectors, new CNLiteV1(false));
        }
Ejemplo n.º 4
0
        public void TestGroestl()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "", "1a52d11d550039be16107f9c58db9ebcc417f16f736adb2502567119f0083467" },
                { "The quick brown fox jumps over the lazy dog", "8c7ad62eb26a21297bc39c2d7293b4bd4d3399fa8afab29e970471739e28b301" },
                { "The quick brown fox jumps over the lazy dog.", "f48290b1bcacee406a0429b993adb8fb3d065f4b09cbcdb464a631d4a0080aaf" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "c0a2d0128630376ffa594518d8a59585abe88a86e5be34701e5e10a641e5bea6" }
            };

            HashTests.Test(testVectors, new Groestl());
        }
Ejemplo n.º 5
0
        public void TestSkein()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "", "39ccc4554a8b31853b9de7a1fe638a24cce6b35a55f2431009e18780335d2621" },
                { "The quick brown fox jumps over the lazy dog", "b3250457e05d3060b1a4bbc1428bc75a3f525ca389aeab96cfa34638d96e492a" },
                { "The quick brown fox jumps over the lazy dog.", "41e829d7fca71c7d7154ed8fc8a069f274dd664ae0ed29d365d919f4e575eebb" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "690ef219f8c4e792c6c22c365728b15459a8937d5b92287127f550d5157c70a2" }
            };

            HashTests.Test(testVectors, new Skein());
        }
Ejemplo n.º 6
0
        public void TestBlake()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "", "716f6e863f744b9ac22c97ec7b76ea5f5908bc5b2f67c61510bfc4751384ea7a" },
                { "The quick brown fox jumps over the lazy dog", "7576698ee9cad30173080678e5965916adbb11cb5245d386bf1ffda1cb26c9d7" },
                { "The quick brown fox jumps over the lazy dog.", "13af722eafeab6bb2ed498129044e6782c84a7604bba9988b135d98158fbe816" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "4c1c8d8e21f59dab627b7a98da6d7d6faf60a31a2dfe3ddf50905e1c07e066c6" }
            };

            HashTests.Test(testVectors, new Blake());
        }
Ejemplo n.º 7
0
        public void TestJH()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "", "46e64619c18bb0a92a5e87185a47eef83ca747b8fcc8e1412921357e326df434" },
                { "The quick brown fox jumps over the lazy dog", "6a049fed5fc6874acfdc4a08b568a4f8cbac27de933496f031015b38961608a0" },
                { "The quick brown fox jumps over the lazy dog.", "d001ae2315421c5d3272bac4f4aa524bddd207530d5d26bbf51794f0da18fafc" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "072ae5d7355bc133eb39983d74068a7b926f198bd27d2c7770a5272b15c84c1e" }
            };

            HashTests.Test(testVectors, new JH());
        }
Ejemplo n.º 8
0
        public void TestKeccak()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "", "c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470" },
                { "The quick brown fox jumps over the lazy dog", "4d741b6f1eb29cb2a9b9911c82f56fa8d73b04959d3d9d222895df6c0b28aa15" },
                { "The quick brown fox jumps over the lazy dog.", "578951e24efd62a3d63a86f7cd19aaa53c898fe287d2552133220370240b572d" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "d6a63dc2e3ab16360c1dd26fa4b343af9dde6b4ae275793b1d64eaffdc02f1d9" }
            };

            HashTests.Test(testVectors, new Keccak());
        }
Ejemplo n.º 9
0
        public void TestCNV0PlatformIndependent()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "", "eb14e8a833fac6fe9a43b57b336789c46ffe93f2868452240720607b14387e11" },
                { "The quick brown fox jumps over the lazy dog", "3ebb7f9f7d273d7c318d869477550cc800cfb11b0cadb7ffbdf6f89f3a471c59" },
                { "The quick brown fox jumps over the lazy dog.", "e37cc1b6fabcd3652b6d2879ac806e39f591f9d1c20be0c6b99cf6bef31158a2" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "d986f765ad299c605eba4712ffe11918ed9f39c4358949fd11a2cfd3f04fab35" },
            };

            HashTests.Test(testVectors, new CNV0(false));
        }
Ejemplo n.º 10
0
        public void TestCNTurtleLiteV2PlatformIndependent()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "", "16cba4f89786b8aa785a4085f529f757296402aca4edbaefc1470bc691071ed9" },
                { "The quick brown fox jumps over the lazy dog", "32406c24600411f331e8a1decf38b65442a2feb6a3b71384bb50473e3e0dc11b" },
                { "The quick brown fox jumps over the lazy dog.", "9684a0c6bc9d1256bb64ee9eaecf429e545073a3a06d88478cd4d2aa6f15263c" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "decefe366f49f7fc26c8b4f87caf7da47552162c236ebc1819c851bc37861ae0" },
            };

            HashTests.Test(testVectors, new CNTurtleLiteV2(false));
        }
Ejemplo n.º 11
0
        public void TestCNV2PlatformIndependent()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "", "e34985722288be50a2068f973f02248d62e7bc6a0a0dfca2eb84909724857a72" },
                { "The quick brown fox jumps over the lazy dog", "89dc534dd473da35f6360dcdc5583aa54279d4370475a46d623463e5d2846c13" },
                { "The quick brown fox jumps over the lazy dog.", "6426bc9c004916344b27e66cbc64f7efc1f4f7c7fba00a37e6928915ae88a552" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "17ef5baf4fe920df66387a719e6df60f5441fc79f3c1684aa925e72358b2bdaf" },
            };

            HashTests.Test(testVectors, new CNV2(false));
        }
Ejemplo n.º 12
0
        public void TestCNLiteV0PlatformIndependent()
        {
            var testVectors = new Dictionary <string, string>
            {
                { "", "4cec4a947f670ffdd591f89cdb56ba066c31cd093d1d4d7ce15d33704c090611" },
                { "The quick brown fox jumps over the lazy dog", "fbbbc024c37acff2e7302275458447f888a8d6361ce407c391be72ed34c16fee" },
                { "The quick brown fox jumps over the lazy dog.", "6d0e743fca6358bd0e9b365a68887fa9abf9f2940fe50682be28759b776d0fb0" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "38c887c08c2c9398d411c4bbf9b3eb707087906a5326ebeb3b238e7867fb1a9b" },
            };

            HashTests.Test(testVectors, new CNLiteV0(false));
        }
Ejemplo n.º 13
0
        public void TestCNV1()
        {
            if (!Sse2.IsSupported || !Aes.IsSupported || !Bmi2.X64.IsSupported)
            {
                Assert.Inconclusive("Intrinsics not available: skipping test");
            }

            var testVectors = new Dictionary <string, string>
            {
                { "The quick brown fox jumps over the lazy dog", "94f5dec524fad6d32004c55c035e5ea223e7315be20e2dc5b8a0ac7464ffeb1f" },
                { "The quick brown fox jumps over the lazy dog.", "86d34efc73e709dcc0f862725be692d1f8c5b407b4d730cd309acf80cc8f7c73" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "246e1f4e7a61e0b29d4fefe33bb48b175468d28c0e44e84cb0cf244be8af9a12" },
            };

            HashTests.Test(testVectors, new CNV1());
        }
Ejemplo n.º 14
0
        public void TestCNLiteV1()
        {
            if (!Sse2.IsSupported || !Aes.IsSupported || !Bmi2.X64.IsSupported)
            {
                Assert.Inconclusive("Intrinsics not available: skipping test");
            }

            var testVectors = new Dictionary <string, string>
            {
                { "The quick brown fox jumps over the lazy dog", "973a324237703e0f2ebe678a0000a00afb14c2c394c1859c84bcaa7b90bc56db" },
                { "The quick brown fox jumps over the lazy dog.", "b860f59d6aef32c7cacac02c4ac794066402dbd30c64c7fb733600a91441326d" },
                { "I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself", "f7a5217873b802940a629573f6a100deb25764af254f8f4fef1a8b9d51ef3cc5" },
            };

            HashTests.Test(testVectors, new CNLiteV1());
        }