UNPKG

@li0ard/kupyna

Version:

Kupyna (DSTU 7564:2014) hash function in pure TypeScript

10 lines (9 loc) 640 B
export declare const bytesToUint64s: (b: Uint8Array) => BigUint64Array; export declare const uint64sToBytes: (w: BigUint64Array) => Uint8Array; export declare function concatBytes(...arrays: Uint8Array[]): Uint8Array; export declare function hexToNumber(hex: string): 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; export declare function bytesToNumberLE(bytes: Uint8Array): bigint; export declare function numberToBytesLE(n: number | bigint, len: number): Uint8Array;