@li0ard/sm3 - v0.1.1
    Preparing search index...

    Class SM3

    ShangMi 3 (SM3) hash function

    Implements

    Index

    Constructors

    Properties

    blockLen: 64

    Bytes processed per compression block.

    canXOF: false

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

    outputLen: number = 32

    Bytes produced by digest().

    Methods

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

      Parameters

      • Optionalto: SM3

        Optional destination instance to reuse.

      Returns SM3

      Cloned hash state.

    • Clone hash instance

      Returns SM3

    • Reset hash state

      Returns void

    • Finalize hash computation and return result as Uint8Array

      Returns Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>

    • Finalize hash computation and write result into Uint8Array

      Parameters

      • buffer: TArg<Uint8Array<ArrayBufferLike>>

      Returns void

    • Update hash buffer

      Parameters

      • data: TArg<Uint8Array<ArrayBufferLike>>

      Returns this