Blake2b.constructor constructor

const Blake2b.constructor({
  1. int hashLengthInBytes = defaultHashLengthInBytes,
})

Constructor for subclasses.

Implementation

const Blake2b.constructor({
  this.hashLengthInBytes = defaultHashLengthInBytes,
})  : assert(hashLengthInBytes > 0),
      assert(hashLengthInBytes <= defaultHashLengthInBytes);