[node] Add missing getFips to crypto (#47298)

Co-authored-by: Dzmitry Siamihradski <dsiamihradski@evolutiongaming.com>
This commit is contained in:
Dmitry Semigradsky 2020-09-08 15:18:44 +03:00 committed by GitHub
parent 061b37dbd6
commit cd362563e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View File

@ -228,6 +228,7 @@ declare module "crypto" {
function publicDecrypt(public_key: string | RsaPublicKey, buffer: Buffer | NodeJS.TypedArray | DataView): Buffer;
function getCiphers(): string[];
function getCurves(): string[];
function getFips(): 1 | 0;
function getHashes(): string[];
class ECDH {
static convertKey(

View File

@ -379,6 +379,7 @@ declare module "crypto" {
function publicDecrypt(public_key: RsaPublicKey | KeyLike, buffer: Binary): Buffer;
function getCiphers(): string[];
function getCurves(): string[];
function getFips(): 1 | 0;
function getHashes(): string[];
class ECDH {
private constructor();

View File

@ -402,6 +402,7 @@ declare module "crypto" {
function privateEncrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
function getCiphers(): string[];
function getCurves(): string[];
function getFips(): 1 | 0;
function getHashes(): string[];
class ECDH {
private constructor();

View File

@ -403,6 +403,7 @@ declare module "crypto" {
function privateEncrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
function getCiphers(): string[];
function getCurves(): string[];
function getFips(): 1 | 0;
function getHashes(): string[];
class ECDH {
private constructor();