UNPKG

aws-crt

Version:

NodeJS/browser bindings to the aws-c-* libraries

26 lines (25 loc) 732 B
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ import { Hashable } from "../common/crypto"; /** * Computes an crc32 checksum. * * @param data The data to checksum * @param previous previous crc32 checksum result. Used if you are buffering large input. * * @module aws-crt * @category Crypto */ export declare function crc32(data: Hashable, previous?: number): number; /** * Computes an crc32 checksum. * * @param data The data to checksum * @param previous previous crc32 checksum result. Used if you are buffering large input. * * @module aws-crt * @category Crypto */ export declare function crc32c(data: Hashable, previous?: number): number;