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

    Function streebog256hmac

    • HMAC over Streebog-256 hash function

      Parameters

      • key: TArg<Uint8Array<ArrayBufferLike>>

        authentication key bytes

      • message: TArg<Uint8Array<ArrayBufferLike>>

        message bytes to authenticate

      Returns Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>

      Authentication tag bytes.

      import { streebog256hmac } from "@li0ard/gost/hmac.js";
      const key = new Uint8Array([1, 2, 3]);
      const message = new Uint8Array([4, 5, 6]);
      const mac = streebog256hmac(key, message);