Gjsify LogoGjsify Logo

An opaque structure representing a HMAC operation. To create a new GHmac, use g_hmac_new(). To free a GHmac, use g_hmac_unref().

record

Hierarchy

  • Hmac

Index

Constructors

Properties

name: string

Methods

  • getDigest(buffer: Uint8Array): void
  • Gets the digest from checksum as a raw binary array and places it into buffer. The size of the digest depends on the type of checksum.

    Once this function has been called, the #GHmac is closed and can no longer be updated with g_checksum_update().

    Parameters

    • buffer: Uint8Array

      output buffer

    Returns void

  • getString(): string
  • Gets the HMAC as a hexadecimal string.

    Once this function has been called the #GHmac can no longer be updated with g_hmac_update().

    The hexadecimal characters will be lower case.

    Returns string

  • unref(): void
  • Atomically decrements the reference count of hmac by one.

    If the reference count drops to 0, all keys and values will be destroyed, and all memory allocated by the hash table is released. This function is MT-safe and may be called from any thread. Frees the memory allocated for hmac.

    Returns void

  • update(data: Uint8Array): void
  • Feeds data into an existing #GHmac.

    The HMAC must still be open, that is g_hmac_get_string() or g_hmac_get_digest() must not have been called on hmac.

    Parameters

    • data: Uint8Array

      buffer used to compute the checksum

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method