Exemple #1
0
        internal HashBuffer Clone()
        {
            var result = new HashBuffer(Length)
            {
                Position = Position, _data = ArrayUtils.Clone(_data)
            };

            return(result);
        }
        protected internal BlockHash(int hashSize, int blockSize, int bufferSize = -1) : base(hashSize, blockSize)
        {
            if (bufferSize == -1)
            {
                bufferSize = blockSize;
            }

            Buffer = new HashBuffer(bufferSize);
        }