Input key material (e.g. a session token).
Optionalsalt: string | Uint8Array<ArrayBufferLike>
Optional salt. Default: empty.
Context string. Default 'anza-stui-session-v1'.
Output length in bytes. Default 32; keep it at 32 or more, since HMAC signing and verification reject shorter secrets.
The derived key.
AnzaError CRYPTO (as a rejection) when derivation fails.
Derive a key with HKDF-SHA256.