Пример #1
0
        public static void Main(string[] args)
        {
            Test("");
            Test("a");
            Test("abc");
            Test("abcdefghijklmnopqrstuvwxyz");
            Test("hi");
            MD4 md4 = new MD4();

            byte[] data = new[] { (byte)0x71, (byte)0xa9, (byte)0x05, (byte)0xce, (byte)0x8d, (byte)0x75, (byte)0x28, (byte)0xc8, (byte)0xba, (byte)0x97, (byte)0x45, (byte)0xe9, (byte)0x8a, (byte)0xe0, (byte)0x37, (byte)0xbd, (byte)0x6c, (byte)0x6d, (byte)0x67, (byte)0x4a, (byte)0x21 };
            System.Diagnostics.Debug.WriteLine("checksum=" + MD4.Com_BlockChecksum(data, 21));
        }
Пример #2
0
 public static Int32 BlockChecksum(Byte[] buf, Int32 length)
 {
     return(MD4.Com_BlockChecksum(buf, length));
 }