Beispiel #1
0
            public override string ToString()
            {
                string st;

                st = MD5CustomHelper.ReverseByte(A).ToString("X8") +
                     MD5CustomHelper.ReverseByte(B).ToString("X8") +
                     MD5CustomHelper.ReverseByte(C).ToString("X8") +
                     MD5CustomHelper.ReverseByte(D).ToString("X8");
                return(st);
            }
Beispiel #2
0
 /// <summary>
 /// perform transformatio using i (c^(b|~d))
 /// </summary>
 protected void TransI(ref uint a, uint b, uint c, uint d, uint k, ushort s, uint i)
 {
     a = b + MD5CustomHelper.RotateLeft((a + (c ^ (b | ~d)) + X[k] + T[i - 1]), s);
 }
Beispiel #3
0
            /********************************************************
             * TRANSFORMATIONS :  FF , GG , HH , II  acc to RFC 1321
             * where each Each letter represnets the aux function used
             *********************************************************/



            /// <summary>
            /// perform transformatio using f(((b&c) | (~(b)&d))
            /// </summary>
            protected void TransF(ref uint a, uint b, uint c, uint d, uint k, ushort s, uint i)
            {
                a = b + MD5CustomHelper.RotateLeft((a + ((b & c) | (~(b) & d)) + X[k] + T[i - 1]), s);
            }