diff --git a/types/node/crypto.d.ts b/types/node/crypto.d.ts index ee0dd7f8ba..b7ecb7fffa 100644 --- a/types/node/crypto.d.ts +++ b/types/node/crypto.d.ts @@ -220,11 +220,11 @@ declare module "crypto" { setAAD(buffer: Buffer, options?: { plaintextLength: number }): this; getAuthTag(): Buffer; } - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; function createDecipheriv( diff --git a/types/node/v10/crypto.d.ts b/types/node/v10/crypto.d.ts index a083b14ef4..0710032678 100644 --- a/types/node/v10/crypto.d.ts +++ b/types/node/v10/crypto.d.ts @@ -88,11 +88,11 @@ declare module "crypto" { setAAD(buffer: Buffer, options?: { plaintextLength: number }): this; getAuthTag(): Buffer; } - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherCCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options: CipherCCMOptions): DecipherCCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherGCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options?: CipherGCMOptions): DecipherGCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: string, password: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Decipher; function createDecipheriv( diff --git a/types/node/v11/crypto.d.ts b/types/node/v11/crypto.d.ts index 6f400bdbca..43fc2b8254 100644 --- a/types/node/v11/crypto.d.ts +++ b/types/node/v11/crypto.d.ts @@ -208,11 +208,11 @@ declare module "crypto" { setAAD(buffer: Buffer, options?: { plaintextLength: number }): this; getAuthTag(): Buffer; } - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; function createDecipheriv(