blake2b
blake2b(
data,outputBytes?):Uint8Array<ArrayBuffer>
Defined in: packages/crypto-hash/src/blake2/blake2b.ts:20
BLAKE2b (RFC 7693), unkeyed. outputBytes chooses the digest length (1-64),
defaulting to 64 (BLAKE2b-512) — the algorithm’s own parameter block folds
outputBytes into the initial state, so this isn’t a post-hoc truncation the
way SHA-224’s is of SHA-256’s.
No Web Crypto kernel: BLAKE2 isn’t part of the Web Crypto specification and no browser implements it; always the TS kernel, plainly synchronous.
Parameters
Section titled “Parameters”Uint8Array
outputBytes?
Section titled “outputBytes?”number = 64
Returns
Section titled “Returns”Uint8Array<ArrayBuffer>
Throws
Section titled “Throws”When outputBytes is not an integer in [1, 64].