add 3 missing methods in crypto module: getCiphers, getCurves and getHashes

This commit is contained in:
york yao
2016-08-16 22:14:23 +08:00
parent 3a056e3864
commit a28758054f
+3
View File
@@ -2166,6 +2166,9 @@ declare module "crypto" {
}
export function publicEncrypt(public_key: string | RsaPublicKey, buffer: Buffer): Buffer
export function privateDecrypt(private_key: string | RsaPrivateKey, buffer: Buffer): Buffer
export function getCiphers(): string[];
export function getCurves(): string[];
export function getHashes(): string[];
}
declare module "stream" {