Comparing version 2.0.0 to 2.0.1
@@ -214,2 +214,3 @@ var assert = require('nanoassert') | ||
Blake2b.prototype.update = function (input) { | ||
assert(input != null, 'input must be Uint8Array or Buffer') | ||
blake2bUpdate(this, input) | ||
@@ -221,2 +222,3 @@ return this | ||
var buf = (!out || out === 'binary' || out === 'hex') ? new Uint8Array(this.outlen) : out | ||
assert(buf.length >= this.outlen, 'out must have at least outlen bytes of space') | ||
blake2bFinal(this, buf) | ||
@@ -223,0 +225,0 @@ if (out === 'hex') return hexSlice(buf) |
{ | ||
"name": "blake2b", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Blake2b (64-bit version) in pure Javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
304964
1755