/** * @license * @preserve * * KeeeX SAS Public code * https://keeex.me * Copyright 2013-2023 KeeeX All Rights Reserved. * * These computer program listings and specifications, herein, * are and remain the property of KeeeX SAS. The intellectual * and technical concepts herein are proprietary to KeeeX SAS * and may be covered by EU and foreign patents, * patents in process, trade secrets and copyright law. * * These listings are published as a way to provide third party * with the ability to process KeeeX data. * As such, support for public inquiries is limited. * They are provided "as-is", without warrany of any kind. * * They shall not be reproduced or copied or used in whole or * in part as the basis for manufacture or sale of items unless * prior written permission is obtained from KeeeX SAS. * * For a license agreement, please contact: * * */ import { type Awaitable } from "@keeex/utils/types/types.js"; /** * Interface for chunk-based digest. * * @public */ export interface Digest { update(data: Uint8Array): Awaitable; digest(data?: Uint8Array): Awaitable; } /** * Supported digest algorithms. * * @public */ export declare enum Algorithms { SHA1 = "SHA1", SHA224 = "SHA-224", SHA256 = "SHA-256", SHA512 = "SHA-512", RIPEMD160 = "RIPEMD-160", SHA3_224 = "SHA3-224", SHA3_256 = "SHA3-256", SHA3_384 = "SHA3-384", SHA3_512 = "SHA3-512", KECCAK224 = "KECCAK-224", KECCAK256 = "KECCAK-256", KECCAK384 = "KECCAK-384", KECCAK512 = "KECCAK-512" } /** * Parameter for either a regular digest or kxMash. * * @public */ export type MultiAlgorithms = Array | Algorithms; /** * Function to compute the hash of a buffer in one call. * * @public */ export type DigestImmediateFunc = (algorithm: Algorithms, data: Uint8Array) => Awaitable; /** * Interface that any digest provider must implement. * * @public */ export interface DigestProvider { digestImmediate?: DigestImmediateFunc; digest?: (algorithm: Algorithms) => Awaitable; } /** @internal */ export declare const isDigestProvider: import("@keeex/utils/types/types.js").TypePredicate;