@li0ard/belt - v0.1.5
    Preparing search index...

    Class BeltHash

    BelT hash mode

    Implements

    Index

    Constructors

    Properties

    blockLen: 32

    Bytes processed per compression block.

    canXOF: false

    Whether the instance supports XOF-style variable-length output via xof() / xofInto().

    outputLen: 32

    Bytes produced by digest().

    Methods

    • Copies the current hash state into an existing or new instance.

      Parameters

      • Optionalto: BeltHash

        Optional destination instance to reuse.

      Returns BeltHash

      Cloned hash state.

    • Reset hash instance

      Returns void

    • Finalize hash computation and return result as Uint8Array

      Returns Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>

    • Finalize hash computation and write result into Uint8Array

      Parameters

      • buf: TArg<Uint8Array<ArrayBufferLike>>

        Output Uint8Array

      Returns void

    • Update hash buffer

      Parameters

      • data: TArg<Uint8Array<ArrayBufferLike>>

      Returns this