UNPKG

@li0ard/gost341194

Version:

GOST R 34.11-94 hash function in pure TypeScript

8 lines (7 loc) 495 B
export declare const xor: (a: Uint8Array, b: Uint8Array) => Uint8Array<ArrayBuffer>; export declare function concatBytes(...arrays: Uint8Array[]): Uint8Array; export declare function hexToNumber(hex: string): bigint; export declare function bytesToNumberBE(bytes: Uint8Array): bigint; export declare function hexToBytes(hex: string): Uint8Array; export declare function bytesToHex(bytes: Uint8Array): string; export declare function numberToBytesBE(n: number | bigint, len: number): Uint8Array;