protected BLAKE2S(int bits) : base(GetHashType(bits), GetName(bits), bits / 8) { _factory = () => { var algo = new Blake2S(bits); algo.Initialize(); return(algo); }; }
public override void Initialize() { _rootHash.Initialize(); for (var idx = 0; idx < ParallelismDegree; idx++) { _leafHashes[idx].Initialize(); } ArrayUtils.ZeroFill(_buffer); _bufferLength = 0; }