export declare const crypto_generichash_STATEBYTES: number; export declare const crypto_generichash_KEYBYTES: number; export declare const crypto_generichash_KEYBYTES_MIN: number; export declare const crypto_generichash_KEYBYTES_MAX: number; export declare const crypto_generichash_BYTES: number; export declare const crypto_generichash_BYTES_MIN: number; export declare const crypto_generichash_BYTES_MAX: number; /** * Hashes a value with an optional key using the generichash method. * https://sodium-friends.github.io/docs/docs/generichashing#crypto_generichash */ export declare function crypto_generichash(out: Uint8Array, input: Uint8Array, key?: Uint8Array): void; /** * Same as crypto_generichash, except that this hashes an array of buffer's instead of a single one. * https://sodium-friends.github.io/docs/docs/generichashing#crypto_generichash_batch */ export declare function crypto_generichash_batch(out: Uint8Array, batch: Uint8Array[], key?: Uint8Array): void; /** * Initialise a new hash state with an optional key and the desired output length. * https://sodium-friends.github.io/docs/docs/generichashing#crypto_generichash_init */ export declare function crypto_generichash_init(state: Uint8Array, key: Uint8Array, outlen: number): void; /** * Update a hash state with a given input. * https://sodium-friends.github.io/docs/docs/generichashing#crypto_generichash_update */ export declare function crypto_generichash_update(state: Uint8Array, input: Uint8Array): void; /** * Finalize a given hash state and write the digest to output buffer. * https://sodium-friends.github.io/docs/docs/generichashing#crypto_generichash_final */ export declare function crypto_generichash_final(state: Uint8Array, out: Uint8Array): void; //# sourceMappingURL=crypto_generichash.d.ts.map