Пример #1
0
 public static SHA256 @new()
 {
     SHA256 s = new SHA256();
     return s;
 }
Пример #2
0
        public IHash copy()
        {
            SHA256 cop = new SHA256();
            Array.Copy(xBuf, 0, cop.xBuf, 0, xBuf.Length);
            cop.xBufOff = xBufOff;
            cop.byteCount = byteCount;

            cop.H1 = H1;
            cop.H2 = H2;
            cop.H3 = H3;
            cop.H4 = H4;
            cop.H5 = H5;
            cop.H6 = H6;
            cop.H7 = H7;
            cop.H8 = H8;
            Array.Copy(X, 0, cop.X, 0, X.Length);
            cop.xOff = xOff;
            return (IHash) cop;
        }