Esempio n. 1
0
        /**
         * Copy constructor.  We are using copy constructors in place
         * of the object.Clone() interface as this interface is not
         * supported by J2ME.
         */
        internal LongDigest(
            LongDigest t)
        {
            this.xBuf = new byte[t.xBuf.Length];

            CopyIn(t);
        }
Esempio n. 2
0
        protected void CopyIn(LongDigest t)
        {
            Array.Copy(t.xBuf, 0, this.xBuf, 0, t.xBuf.Length);

            this.xBufOff    = t.xBufOff;
            this.byteCount1 = t.byteCount1;
            this.byteCount2 = t.byteCount2;

            this.H1 = t.H1;
            this.H2 = t.H2;
            this.H3 = t.H3;
            this.H4 = t.H4;
            this.H5 = t.H5;
            this.H6 = t.H6;
            this.H7 = t.H7;
            this.H8 = t.H8;

            Array.Copy(t.W, 0, this.W, 0, t.W.Length);
            this.wOff = t.wOff;
        }