/** * @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 * as digestTypes from "./digesttypes.js"; /** Return the internal block size for a given digest algorithm, in bytes */ export declare const digestBlockSize: (algorithm: digestTypes.Algorithms) => number; /** Return the output size for a given digest algorithm, in bytes */ export declare const digestOutputSize: (algorithm: digestTypes.Algorithms) => number; /** * Compute the digest of a full buffer. * * @param algorithm - A single value to perform a regular digest, or an array of algorithms to chain * to perform a "KeeeX Multihash". * In the case of an array, the first algorithm provided is the outermost one, that will condition * the size of the output. * * @public */ export declare const digestImmediate: (algorithm: digestTypes.Algorithms | Array, data: Uint8Array) => Promise; /** * Compute the digest of a string. * * @param algorithm - A single value to perform a regular digest, or an array of algorithms to chain * to perform a "KeeeX Multihash". * In the case of an array, the first algorithm provided is the outermost one, that will condition * the size of the output. * * @public */ export declare const digestString: (algorithm: digestTypes.Algorithms | Array, data: string) => Promise; /** * Return a chunk based digest class. * * @param algorithm - A single algorithm or a list of algorithms. When using a list of algorithms, * KeeeX multihash (kxMash) is used. * * @public */ export declare const digest: (algorithm: digestTypes.Algorithms | Array) => Promise; export { kxMashAlgoToString, kxMashStringToAlgo } from "./digest/multihash.js"; export { DigestProvider, Algorithms, Digest } from "./digesttypes.js";