whiteflag-js
    Preparing search index...

    Function createHmacKey

    • Function

      Creates an HMAC signing key createHmacKey

      Parameters

      • rawKey: Uint8Array<ArrayBuffer>

        the raw key

      • algorithm: string = DEFAULT_HASHALG

        the hashing algorithm, default is SHA-256

      Returns Promise<CryptoKey>

      the HMAC signing key