Class Sha256Hmac

Object that allows for continuous hashing of data with an hmac secret.

Hierarchy

  • BaseHash
    • Sha256Hmac

Constructors

Methods

Constructors

  • Constructor for the Sha256Hmac class type

    Parameters

    • secret: Hashable

      secret key to seed the hmac process with

    Returns Sha256Hmac

Methods

  • Hashes additional data

    Parameters

    • data: Hashable

      Additional data to hash

    Returns void

  • Completes the hash computation and returns the final hash digest.

    Parameters

    • Optional truncate_to: number

      The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest.

    Returns DataView

    the final hash digest

Generated using TypeDoc