1 | /// <reference types="node" />
|
2 |
|
3 | import { Hmac } from "crypto";
|
4 |
|
5 | export = createHmac;
|
6 |
|
7 | declare function createHmac(algo: createHmac.Algorithm, key: string | Buffer): Hmac;
|
8 |
|
9 | declare namespace createHmac {
|
10 | type Algorithm =
|
11 | | "rmd160"
|
12 | | "ripemd160"
|
13 | | "md5"
|
14 | | "sha"
|
15 | | "sha1"
|
16 | | "sha224"
|
17 | | "sha256"
|
18 | | "sha384"
|
19 | | "sha512";
|
20 | }
|