You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Emil Bay
bc47d75db8
|
7 years ago | |
---|---|---|
LICENSE | 7 years ago | |
README.md | 7 years ago | |
example.js | 7 years ago | |
package.json | 7 years ago | |
test-vectors.json | 7 years ago |
README.md
blake2b
Blake2b (64-bit version) in pure Javascript
Usage
var blake2b = require('blake2b')
var output = new Uint8Array(64)
var input = Buffer.from('hello world')
blake2b(output, input)
API
blake2b(out, input, [key], [salt], [personal])
Install
npm install blake2b
Test vectors
This repository includes test vectors with
{outlen, out, input, key, salt, personal}
objects for testing conformance
against the spec and other implementations:
- Lines 2 - 257 are tests for hashing with no key, taken from BLAKE2 test vectors
- Lines 258 - 513 are tests for hashing with keys, taken from BLAKE2 test vectors
- Lines 514- 577 are tests for hashing with key, salt and personalisation, derived from the libsodium tests