Swap-Aggregator-Subgraph/node_modules/asmcrypto.js/dist_es5/hash/hash.d.ts
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

16 lines
463 B
TypeScript
Executable File

import { sha1result } from './sha1/sha1.asm';
import { sha256result } from './sha256/sha256.asm';
import { sha512result } from './sha512/sha512.asm';
export declare abstract class Hash<T extends sha1result | sha256result | sha512result> {
result: Uint8Array | null;
pos: number;
len: number;
asm: T;
heap: Uint8Array;
BLOCK_SIZE: number;
HASH_SIZE: number;
reset(): this;
process(data: Uint8Array): this;
finish(): this;
}