Esempio n. 1
0
        public static uint CalculateDigest(byte[] data, uint offset, uint size)
        {
            TCRC7z crc = new TCRC7z();

            crc.Init();
            TCRC7z.Update(data, offset, size);
            return(TCRC7z.GetDigest());
        }
Esempio n. 2
0
        public static uint CalculateDigest(string inString)
        {
            TCRC7z crc = new TCRC7z();

            crc.Init();
            ASCIIEncoding UE = new ASCIIEncoding();

            byte[] data = UE.GetBytes(inString);
            TCRC7z.Update(data, 0, (uint)data.Length);
            return(TCRC7z.GetDigest());
        }