interface Blake2b {
    digest(out?): Uint8Array;
    digest<TBuffer>(out): TBuffer;
    digest(out): string;
    update(input): this;
}

Methods

Methods

  • Finalise the the hash and write the digest to out. out must be exactly equal to outLength given in the blake2b method.

    Optionally you can pass hex to get the hash as a hex string or no arguments to have the hash return a new Uint8Array with the hash.

    Parameters

    • Optional out: "binary"

    Returns Uint8Array

  • Type Parameters

    • TBuffer extends Uint8Array

    Parameters

    Returns TBuffer

  • Parameters

    • out: "hex"

    Returns string

  • Update the hash with new input. Calling this method after .digest will throw an error.

    Parameters

    • input: Uint8Array

    Returns this

Generated using TypeDoc