internal HMACNotBuiltInToHMACAdapter(IHMACNotBuiltIn hmacNotBuiltIn) { _hmacNotBuiltIn = hmacNotBuiltIn != null ? (IHMACNotBuiltIn)hmacNotBuiltIn.Clone() : throw new ArgumentNullException(nameof(hmacNotBuiltIn)); BlockSizeValue = hmacNotBuiltIn.BlockSize; HashSizeValue = hmacNotBuiltIn.HashSize * 8; Initialize(); }
public override IKDFNotBuiltIn Clone() => new PBKDF2HMACNotBuiltIn { _hmacNotBuiltIn = (IHMACNotBuiltIn)_hmacNotBuiltIn.Clone(), _password = ArrayUtils.Clone(_password), _salt = ArrayUtils.Clone(_salt), _buffer = ArrayUtils.Clone(_buffer), _iterations = _iterations, _block = _block, _blockSize = _blockSize, _startIndex = _startIndex, _endIndex = _endIndex };
public override IKDFNotBuiltIn Clone() { return(new PBKDF2_HMACNotBuildInAdapter { hmacNotBuiltIn = (IHMACNotBuiltIn)hmacNotBuiltIn.Clone(), Password = Password.DeepCopy(), Salt = Salt.DeepCopy(), buffer = buffer.DeepCopy(), IterationCount = IterationCount, Block = Block, BlockSize = BlockSize, startIndex = startIndex, endIndex = endIndex }); } // end function Clone