Example #1
0
            protected override void CopyStateTo(BlockTransformer other)
            {
                base.CopyStateTo(other);

                other._hashSizeInBits = _hashSizeInBits;
                other._config         = _config.Clone();

                other._hashValue = _hashValue;
            }
Example #2
0
        public Blake2BFunction(BlakeConfig config)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            _config = config.Clone();
        }