UNPKG

@li0ard/gost341194

Version:

GOST R 34.11-94 hash function in pure TypeScript

6 lines (5 loc) 368 B
import { type TArg, type TRet } from "@noble/hashes/utils.js"; export declare const xor: (a: TArg<Uint8Array>, b: TArg<Uint8Array>) => TRet<Uint8Array>; export declare const hexToNumber: (hex: string) => bigint; export declare const bytesToNumberBE: (bytes: Uint8Array) => bigint; export declare const numberToBytesBE: (n: number | bigint, len: number) => Uint8Array;