UNPKG

@bitpatty/imgproxy-url-builder

Version:

A TypeScript helper library for building imgproxy URLs

20 lines (19 loc) 612 B
/** * The block size used for hashing functions */ declare const BLOCK_SIZE = 512; /** * Converts a word array (Uint32Array) into a byte array (Uint8Array) * * @param wordArray The Uint32Array * @returns The Uint8Array */ declare const wordArrayToByteArray: (wordArray: Uint32Array) => Uint8Array; /** * Converts a byte array (Uint8Array) into a word array (Uint32Array) * * @param byteArray The Uint8Array * @returns The Uint32Array */ declare const byteArrayToWordArray: (byteArray: Uint8Array) => Uint32Array; export { BLOCK_SIZE, wordArrayToByteArray, byteArrayToWordArray };