Skip to content

hmacSha256

hmacSha256(key, message): MaybePromiseLike<Uint8Array<ArrayBuffer>>

Defined in: hmac-sha256.ts:22

HMAC-SHA-256 (RFC 2104). Prefers the Web Crypto kernel (crypto.subtle.importKey + .sign, real Promise) when available; falls back to the TS kernel (synchronous, no Promise allocation) otherwise — same dual-kernel shape as sha256 in @ac-kit/crypto-hash.

Uint8Array<ArrayBuffer>

Uint8Array<ArrayBuffer>

MaybePromiseLike<Uint8Array<ArrayBuffer>>