mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
18 lines
795 B
TypeScript
Executable File
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;
|