For XOF hash functions such as shake256
, the outputLength option can be used to specify the desired output length in bytes.
interface
crypto.HashOptions
interface HashOptions
- outputLength?: number
- signal?: AbortSignal
When provided the corresponding
AbortController
can be used to cancel an asynchronous action.