Options
All
  • Public
  • Public/Protected
  • All
Menu

bigint-hash

Index

Functions

getHasher

  • Obtain a hasher instance for hashing. If you will only hash a single buffer, call the hashAsBigInt or hashAsBuffer functions instead, as they yield better performance.

    @param hash The type of algorithm to support

    @returns A Hash instance for hashing.

    Parameters

    Returns Hash

hashAsBigInt

  • hashAsBigInt(hash: HashType, buf: Buffer): bigint
  • Hash the given buffer using the hashing algorithm specified, returning the digest as a bigint.

    @param hash The hash algorithm to use. @param buf The buffer to use.

    @returns A bigint with the message digest.

    Parameters

    Returns bigint

hashAsBuffer

  • hashAsBuffer(hash: HashType, buf: Buffer): Buffer
  • Hash the given buffer using the hashing algorithm specified, returning the digest as a Buffer.

    @param hash The hash algorithm to use. @param buf The buffer to use.

    @returns A buffer with the message digest.

    Parameters

    Returns Buffer

Generated using TypeDoc