Skip to content

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.

Uint8Array

number = 64

Uint8Array<ArrayBuffer>

When outputBytes is not an integer in [1, 64].