whiteflag-js
    Preparing search index...

    Function hmac

    • Function

      Hash-Based Message Authentication Code function hmac

      Parameters

      • rawKey: Uint8Array<ArrayBuffer>

        the raw HMAC key

      • message: Uint8Array<ArrayBuffer>

        the message to authenticate

      • algorithm: string = HASHALG

        the hash algorithm to be used; default is SHA-256

      Returns Promise<Uint8Array<ArrayBuffer>>

      the message authentication code