@li0ard/gost - v0.1.4
    Preparing search index...

    Class Gost341194

    GOST R 34.11-94 hash function

    Implements

    Index

    Constructors

    • GOST R 34.11-94 hash function

      Parameters

      • data: TArg<Uint8Array<ArrayBufferLike>> = ...
      • sbox: TArg<Uint8Array<ArrayBufferLike>>[] = ID_GOSTR_3411_94_CRYPTOPRO_PARAM_SET

      Returns Gost341194

    Properties

    blockLen: number = BLOCKSIZE

    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

    • Wipes internal state and makes the instance unusable.

      Returns void

    • Finalizes the hash and returns a freshly allocated digest.

      Returns Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>

      Digest bytes.

    • Finalizes the hash into a caller-provided buffer.

      Parameters

      • buf: TArg<Uint8Array<ArrayBufferLike>>

        destination buffer

      Returns void

      Nothing. Implementations write into buf in place.

    • Absorbs more message bytes into the running hash state.

      Parameters

      • data: TArg<Uint8Array<ArrayBufferLike>>

      Returns this

      The same hash instance for chaining.