UNPKG

@li0ard/streebog

Version:

Streebog hash function in pure TypeScript

14 lines (13 loc) 474 B
import { HMAC } from "@noble/hashes/hmac"; import { type Hash } from "@noble/hashes/utils"; import { Streebog256, Streebog512 } from "./index"; /** * HMAC implementation for Streebog 256 bit * @param key Encryption key */ export declare const Streebog256HMAC: (key: Uint8Array) => HMAC<Hash<Streebog256>>; /** * HMAC implementation for Streebog 512 bit * @param key Encryption key */ export declare const Streebog512HMAC: (key: Uint8Array) => HMAC<Hash<Streebog512>>;