private static Blake2B MakeBlake2BInstanceAndInitialize(int hashSize) { var hashInstance = new Blake2B(new Blake2BConfig(hashSize)); hashInstance.Initialize(); return(hashInstance); }
protected BLAKE2B(int bits) : base(GetHashType(bits), GetName(bits), bits / 8) { _factory = () => { var algo = new Blake2B(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; }