Ejemplo n.º 1
0
        /**
         * Copy constructor.  This will copy the state of the provided
         * message digest.
         */
        public Sha512tDigest(Sha512tDigest t)
            : base(t)
        {
            this.digestLength = t.digestLength;

            Reset(t);
        }
Ejemplo n.º 2
0
        public override void Reset(IMemoable other)
        {
            Sha512tDigest t = (Sha512tDigest)other;

            if (this.digestLength != t.digestLength)
            {
                throw new MemoableResetException("digestLength inappropriate in other");
            }

            base.CopyIn(t);

            this.H1t = t.H1t;
            this.H2t = t.H2t;
            this.H3t = t.H3t;
            this.H4t = t.H4t;
            this.H5t = t.H5t;
            this.H6t = t.H6t;
            this.H7t = t.H7t;
            this.H8t = t.H8t;
        }