Пример #1
0
 private void CopyIn(Sha3Digest source)
 {
     Array.Copy(source.state, 0, this.state, 0, source.state.Length);
     Array.Copy(source.dataQueue, 0, this.dataQueue, 0, source.dataQueue.Length);
     this.rate                      = source.rate;
     this.bitsInQueue               = source.bitsInQueue;
     this.fixedOutputLength         = source.fixedOutputLength;
     this.squeezing                 = source.squeezing;
     this.bitsAvailableForSqueezing = source.bitsAvailableForSqueezing;
     this.chunk                     = Arrays.Clone(source.chunk);
     this.oneByte                   = Arrays.Clone(source.oneByte);
 }
Пример #2
0
 public Sha3Digest(Sha3Digest source)
     : base(source)
 {
 }
Пример #3
0
        public void Reset(IMemoable other)
        {
            Sha3Digest d = (Sha3Digest)other;

            CopyIn(d);
        }
Пример #4
0
 public Sha3Digest(Sha3Digest source)
 {
     CopyIn(source);
 }
Пример #5
0
		private void CopyIn(Sha3Digest source)
		{
            Array.Copy(source.state, 0, this.state, 0, source.state.Length);
            Array.Copy(source.dataQueue, 0, this.dataQueue, 0, source.dataQueue.Length);
            this.rate = source.rate;
            this.bitsInQueue = source.bitsInQueue;
            this.fixedOutputLength = source.fixedOutputLength;
            this.squeezing = source.squeezing;
            this.bitsAvailableForSqueezing = source.bitsAvailableForSqueezing;
            this.chunk = Arrays.Clone(source.chunk);
            this.oneByte = Arrays.Clone(source.oneByte);
        }
Пример #6
0
        public Sha3Digest(Sha3Digest source)
        {
			CopyIn(source);
		}