Skip to content

shake128

shake128(data, outputBytes): Uint8Array

Defined in: packages/crypto-hash/src/keccak/shake128.ts:15

SHAKE128 (FIPS 202) — an extendable-output function (XOF): outputBytes chooses the output length freely, rather than it being fixed by the algorithm the way SHA3-*’s is.

No Web Crypto kernel: no engine implements SHAKE at all (confirmed empirically — Node’s experimental SHA-3 support stops at the fixed-output members).

Uint8Array

number

Uint8Array

When outputBytes is not a non-negative integer.