UNPKG

@li0ard/strumok

Version:

Strumok (DSTU 8845:2019) cipher implementation in pure TypeScript

8 lines (7 loc) 480 B
export declare const bytesToUint64s: (b: Uint8Array) => BigUint64Array; export declare const uint64sToBytes: (w: BigUint64Array) => 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 bytesToNumberBE(bytes: Uint8Array): bigint;