-
Notifications
You must be signed in to change notification settings - Fork 1
/
hash.d.ts
33 lines (33 loc) · 1.37 KB
/
hash.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/// <reference types="node" />
export declare class Hash {
static readonly blockSize: {
sha1: number;
sha256: number;
sha512: number;
};
static sha1(buf: Buffer): Buffer;
static asyncSha1(buf: Buffer): Promise<Buffer>;
static sha256(buf: Buffer): Buffer;
static asyncSha256(buf: Buffer): Promise<Buffer>;
static sha256Sha256(buf: Buffer): Buffer;
static asyncSha256Sha256(buf: Buffer): Promise<Buffer>;
static ripemd160(buf: Buffer): Buffer;
static asyncRipemd160(buf: Buffer): Promise<Buffer>;
static sha256Ripemd160(buf: Buffer): Buffer;
static asyncSha256Ripemd160(buf: Buffer): Promise<Buffer>;
static sha512(buf: Buffer): Buffer;
static asyncSha512(buf: Buffer): Promise<Buffer>;
static hmac(hashFStr: 'sha1' | 'sha256' | 'sha512', data: Buffer, key: Buffer): Buffer;
static readonly bitsize: {
sha1Hmac: number;
sha256Hmac: number;
sha512Hmac: number;
};
static sha1Hmac(data: Buffer, key: Buffer): Buffer;
static asyncSha1Hmac(data: Buffer, key: Buffer): Promise<Buffer>;
static sha256Hmac(data: Buffer, key: Buffer): Buffer;
static asyncSha256Hmac(data: Buffer, key: Buffer): Promise<Buffer>;
static sha512Hmac(data: Buffer, key: Buffer): Buffer;
static asyncSha512Hmac(data: Buffer, key: Buffer): Promise<Buffer>;
}
//# sourceMappingURL=hash.d.ts.map