@@ -10,12 +10,6 @@ import type {
1010 CipherGCMOptions ,
1111 CipherOCBOptions ,
1212 CipherOCBTypes ,
13- DecipherGCM ,
14- DecipherOCB ,
15- DecipherCCM ,
16- CipherCCM ,
17- CipherOCB ,
18- CipherGCM ,
1913} from 'crypto' ; // @types /node
2014import type { Cipher as NativeCipher } from './specs/cipher.nitro' ;
2115import { binaryLikeToArrayBuffer } from './utils' ;
@@ -184,7 +178,7 @@ class Cipheriv extends CipherCommon {
184178 }
185179}
186180
187- type Cipher = CipherCCM | CipherOCB | CipherGCM | Cipheriv ;
181+ type Cipher = Cipheriv ;
188182
189183class Decipheriv extends CipherCommon {
190184 constructor (
@@ -203,26 +197,26 @@ class Decipheriv extends CipherCommon {
203197 }
204198}
205199
206- type Decipher = DecipherCCM | DecipherOCB | DecipherGCM | Decipheriv ;
200+ type Decipher = Decipheriv ;
207201
208202export function createDecipheriv (
209203 algorithm : CipherCCMTypes ,
210204 key : BinaryLikeNode ,
211205 iv : BinaryLike ,
212206 options : CipherCCMOptions ,
213- ) : DecipherCCM ;
207+ ) : Decipher ;
214208export function createDecipheriv (
215209 algorithm : CipherOCBTypes ,
216210 key : BinaryLikeNode ,
217211 iv : BinaryLike ,
218212 options : CipherOCBOptions ,
219- ) : DecipherOCB ;
213+ ) : Decipher ;
220214export function createDecipheriv (
221215 algorithm : CipherGCMTypes ,
222216 key : BinaryLikeNode ,
223217 iv : BinaryLike ,
224218 options ?: CipherGCMOptions ,
225- ) : DecipherGCM ;
219+ ) : Decipher ;
226220export function createDecipheriv (
227221 algorithm : CipherType ,
228222 key : BinaryLikeNode ,
@@ -252,19 +246,19 @@ export function createCipheriv(
252246 key : BinaryLikeNode ,
253247 iv : BinaryLike ,
254248 options : CipherCCMOptions ,
255- ) : CipherCCM ;
249+ ) : Cipher ;
256250export function createCipheriv (
257251 algorithm : CipherOCBTypes ,
258252 key : BinaryLikeNode ,
259253 iv : BinaryLike ,
260254 options : CipherOCBOptions ,
261- ) : CipherOCB ;
255+ ) : Cipher ;
262256export function createCipheriv (
263257 algorithm : CipherGCMTypes ,
264258 key : BinaryLikeNode ,
265259 iv : BinaryLike ,
266260 options ?: CipherGCMOptions ,
267- ) : CipherGCM ;
261+ ) : Cipher ;
268262export function createCipheriv (
269263 algorithm : CipherType ,
270264 key : BinaryLikeNode ,
0 commit comments