Exemplo n.º 1
0
        public void Reset(IMemoable other)
        {
            Tiger2Digest originalDigest = (Tiger2Digest)other;

            Array.Copy(originalDigest._state, 0, _state, 0, _state.Length);
            _buffer = new byte[originalDigest._buffer.Length];
            Array.Copy(originalDigest._buffer, 0, _buffer, 0, _buffer.Length);

            _rounds         = originalDigest._rounds;
            _digestLength   = originalDigest._digestLength;
            _byteLength     = originalDigest._byteLength;
            _bufferPos      = originalDigest._bufferPos;
            _processedBytes = originalDigest._processedBytes;
        }
Exemplo n.º 2
0
 /**
  * Copy constructor. This will copy the state of the provided
  * message digest.
  */
 public Tiger2Digest(Tiger2Digest t)
 {
     Reset(t);
 }