/******************************************************************** * @author: Kaven * @email: kaven@wuwenkai.com * @website: http://blog.kaven.xyz * @file: [Kaven-Basic] /src/libs/hash/KavenCRC.ts * @create: 2019-04-02 17:02:48.463 * @modify: 2025-10-14 22:39:26.167 * @version: 6.1.0 * @times: 84 * @lines: 342 * @copyright: Copyright © 2019-2025 Kaven. All Rights Reserved. * @description: [description] * @license: * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. ********************************************************************/ import { BitString } from "../class/BitString"; import { ICyclicRedundancyCheckModel } from "../interface/ICyclicRedundancyCheckModel"; import { ILoggingAgent } from "../interface/ILoggingAgent"; import { TAsyncHashInput, TSyncHashInput } from "../type/advanced"; export declare class KavenCRC implements ICyclicRedundancyCheckModel { static get CRC32(): ICyclicRedundancyCheckModel; /** * The ECMA polynomial, defined in ECMA 182. * @link http://reveng.sourceforge.net/crc-catalogue/17plus.htm#crc.cat.crc-64-ecma-182 */ static get CRC64_ECMA_182(): ICyclicRedundancyCheckModel; /** * Wolfgang Ehrhardt */ static get CRC64_ECMA_WE(): ICyclicRedundancyCheckModel; /** * XZ Utils */ static get CRC64_ECMA_XZ(): ICyclicRedundancyCheckModel; /** * The ISO polynomial, defined in ISO 3309 and used in HDLC. */ static get CRC64_ISO(): ICyclicRedundancyCheckModel; Width: number; Polynomial: BitString; InitialValue: BitString; FinalXORValue: BitString; InputReflected: boolean; ResultReflected: boolean; private readonly table; get ShiftBits(): number; get TopBitMask(): BitString; get FullBitMask(): BitString; constructor(modal: ICyclicRedundancyCheckModel); MakeTable(): BitString[]; PrintTable(logger: ILoggingAgent, columns?: number): void; Compute(input: TSyncHashInput): BitString; ComputeAsync(input: TAsyncHashInput): Promise; ComputerWithoutTable(input: TSyncHashInput): BitString; ComputerWithoutTableAsync(input: TAsyncHashInput): Promise; } //# sourceMappingURL=KavenCRC.d.ts.map