Function instantiateHmacFunction

  • Instantiate a hash-based message authentication code (HMAC) function as specified by RFC 2104.

    Parameters

    • hashFunction: ((input: Uint8Array) => Uint8Array)

      a cryptographic hash function that iterates a basic compression function over blocks of data

        • (input: Uint8Array): Uint8Array
        • Parameters

          • input: Uint8Array

          Returns Uint8Array

    • blockByteLength: number

      the byte-length of blocks used in hashFunction

    Returns ((secret: Uint8Array, message: Uint8Array) => Uint8Array)

      • (secret: Uint8Array, message: Uint8Array): Uint8Array
      • Parameters

        • secret: Uint8Array
        • message: Uint8Array

        Returns Uint8Array

Generated using TypeDoc