iya-sts
    Preparing search index...

    Variable hmac

    hmac: (algorithm: any, key: any, data: any, encoding: any) => any = hmac

    Type Declaration

      • (algorithm: any, key: any, data: any, encoding: any): any
      • Returns the HMAC of a value under a key.

        Parameters

        • algorithm: any

          sha256, sha384 or sha512

        • key: any

          the key: bytes, a string, or a secret KeyObject

        • data: any

          the bytes, or a string read as UTF-8

        • encoding: any

          hex, base64 or base64url; a Buffer when absent

        Returns any

        the MAC

        Error for an algorithm outside the list