@iden3/js-crypto
Version:
Crypto primitives for iden3
20 lines • 588 B
TypeScript
export declare class Hash {
digestLength: number;
blockSize: number;
private state;
private temp;
private buffer;
private bufferLength;
private bytesHashed;
finished: boolean;
constructor();
reset(): this;
clean(): void;
update(data: Uint8Array, dataLength?: number): this;
finish(out: Uint8Array): this;
digest(): Uint8Array;
_saveState(out: Uint32Array): void;
_restoreState(from: Uint32Array, bytesHashed: number): void;
}
export declare function sha256(data: Uint8Array): Uint8Array;
//# sourceMappingURL=sha256.d.ts.map