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

18 lines
795 B
TypeScript
Executable File

import { Hash } from '../hash/hash';
import { sha1result } from '../hash/sha1/sha1.asm';
import { sha256result } from '../hash/sha256/sha256.asm';
import { sha512result } from '../hash/sha512/sha512.asm';
export declare abstract class Hmac<T extends Hash<sha1result> | Hash<sha256result> | Hash<sha512result>> {
hash: T;
protected BLOCK_SIZE: number;
HMAC_SIZE: number;
protected key: Uint8Array;
protected verify: Uint8Array | null;
result: Uint8Array | null;
protected constructor(hash: T, password: Uint8Array, verify?: Uint8Array);
process(data: Uint8Array): this;
finish(): this;
_hmac_init_verify(verify: Uint8Array): void;
}
export declare function _hmac_key(hash: Hash<sha1result | sha256result | sha512result>, password: Uint8Array): Uint8Array;