Exemple #1
0
        public void Test_crc64_Ecma()
        {
            // Arrange & act
            var output = SecurityUtils.Crc64(Encoding.ASCII.GetBytes("1234567"), SecurityUtils.Crc64EcmaPolynomial);

            // Assert
            Assert.Equal(0x70509f3661923da0u, output);
        }
Exemple #2
0
        public void Test_crc64_Iso()
        {
            // Arrange & act
            var output = SecurityUtils.Crc64(Encoding.ASCII.GetBytes("1234567"), SecurityUtils.Crc64IsoPolynomial);

            // Assert
            Assert.Equal(0x46c775a41001b320u, output);
        }