Skip to content

hmacSha1

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

Defined in: hmac-sha1.ts:22

HMAC-SHA-1 (RFC 2104), legacy interop only. 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 sha1/sha256 in @ac-kit/crypto-hash.

Uint8Array<ArrayBuffer>

Uint8Array<ArrayBuffer>

MaybePromiseLike<Uint8Array<ArrayBuffer>>