UNPKG

394 BTypeScriptView Raw
1import { Checksum, SourceData } from "@aws-sdk/types";
2export declare class Hash implements Checksum {
3 private readonly algorithmIdentifier;
4 private readonly secret?;
5 private hash;
6 constructor(algorithmIdentifier: string, secret?: SourceData);
7 update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void;
8 digest(): Promise<Uint8Array>;
9 reset(): void;
10}