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.
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.
Generated using TypeDoc
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.