@@ -303,15 +303,15 @@ console.log(cert.verifySpkac(Buffer.from(spkac)));
303303// Prints: true or false
304304```
305305
306- ## Class: ` Cipher `
306+ ## Class: ` Cipheriv `
307307
308308<!-- YAML
309309added: v0.1.94
310310-->
311311
312312* Extends: {stream.Transform}
313313
314- Instances of the ` Cipher ` class are used to encrypt data. The class can be
314+ Instances of the ` Cipheriv ` class are used to encrypt data. The class can be
315315used in one of two ways:
316316
317317* As a [ stream] [ ] that is both readable and writable, where plain unencrypted
@@ -320,10 +320,10 @@ used in one of two ways:
320320 the encrypted data.
321321
322322The [ ` crypto.createCipheriv() ` ] [ ] method is
323- used to create ` Cipher ` instances. ` Cipher ` objects are not to be created
323+ used to create ` Cipheriv ` instances. ` Cipheriv ` objects are not to be created
324324directly using the ` new ` keyword.
325325
326- Example: Using ` Cipher ` objects as streams:
326+ Example: Using ` Cipheriv ` objects as streams:
327327
328328``` mjs
329329const {
@@ -391,7 +391,7 @@ scrypt(password, 'salt', 24, (err, key) => {
391391});
392392```
393393
394- Example: Using ` Cipher ` and piped streams:
394+ Example: Using ` Cipheriv ` and piped streams:
395395
396396``` mjs
397397import {
@@ -538,7 +538,7 @@ added: v0.1.94
538538 If ` outputEncoding ` is specified, a string is
539539 returned. If an ` outputEncoding ` is not provided, a [ ` Buffer ` ] [ ] is returned.
540540
541- Once the ` cipher.final() ` method has been called, the ` Cipher ` object can no
541+ Once the ` cipher.final() ` method has been called, the ` Cipheriv ` object can no
542542longer be used to encrypt data. Attempts to call ` cipher.final() ` more than
543543once will result in an error being thrown.
544544
@@ -570,7 +570,7 @@ added: v1.0.0
570570* ` options ` {Object} [ ` stream.transform ` options] [ ]
571571 * ` plaintextLength ` {number}
572572 * ` encoding ` {string} The string encoding to use when ` buffer ` is a string.
573- * Returns: {Cipher } The same ` Cipher ` instance for method chaining.
573+ * Returns: {Cipheriv } The same ` Cipheriv ` instance for method chaining.
574574
575575When using an authenticated encryption mode (` GCM ` , ` CCM ` , ` OCB ` , and
576576` chacha20-poly1305 ` are
@@ -590,9 +590,9 @@ added: v0.7.1
590590-->
591591
592592* ` autoPadding ` {boolean} ** Default:** ` true `
593- * Returns: {Cipher } The same ` Cipher ` instance for method chaining.
593+ * Returns: {Cipheriv } The same ` Cipheriv ` instance for method chaining.
594594
595- When using block encryption algorithms, the ` Cipher ` class will automatically
595+ When using block encryption algorithms, the ` Cipheriv ` class will automatically
596596add padding to the input data to the appropriate block size. To disable the
597597default padding call ` cipher.setAutoPadding(false) ` .
598598
@@ -635,15 +635,15 @@ The `cipher.update()` method can be called multiple times with new data until
635635[ ` cipher.final() ` ] [ ] is called. Calling ` cipher.update() ` after
636636[ ` cipher.final() ` ] [ ] will result in an error being thrown.
637637
638- ## Class: ` Decipher `
638+ ## Class: ` Decipheriv `
639639
640640<!-- YAML
641641added: v0.1.94
642642-->
643643
644644* Extends: {stream.Transform}
645645
646- Instances of the ` Decipher ` class are used to decrypt data. The class can be
646+ Instances of the ` Decipheriv ` class are used to decrypt data. The class can be
647647used in one of two ways:
648648
649649* As a [ stream] [ ] that is both readable and writable, where plain encrypted
@@ -652,10 +652,10 @@ used in one of two ways:
652652 produce the unencrypted data.
653653
654654The [ ` crypto.createDecipheriv() ` ] [ ] method is
655- used to create ` Decipher ` instances. ` Decipher ` objects are not to be created
655+ used to create ` Decipheriv ` instances. ` Decipheriv ` objects are not to be created
656656directly using the ` new ` keyword.
657657
658- Example: Using ` Decipher ` objects as streams:
658+ Example: Using ` Decipheriv ` objects as streams:
659659
660660``` mjs
661661import { Buffer } from ' node:buffer' ;
@@ -731,7 +731,7 @@ decipher.write(encrypted, 'hex');
731731decipher .end ();
732732```
733733
734- Example: Using ` Decipher ` and piped streams:
734+ Example: Using ` Decipheriv ` and piped streams:
735735
736736``` mjs
737737import {
@@ -848,7 +848,7 @@ added: v0.1.94
848848 If ` outputEncoding ` is specified, a string is
849849 returned. If an ` outputEncoding ` is not provided, a [ ` Buffer ` ] [ ] is returned.
850850
851- Once the ` decipher.final() ` method has been called, the ` Decipher ` object can
851+ Once the ` decipher.final() ` method has been called, the ` Decipheriv ` object can
852852no longer be used to decrypt data. Attempts to call ` decipher.final() ` more
853853than once will result in an error being thrown.
854854
@@ -870,7 +870,7 @@ changes:
870870* ` options ` {Object} [ ` stream.transform ` options] [ ]
871871 * ` plaintextLength ` {number}
872872 * ` encoding ` {string} String encoding to use when ` buffer ` is a string.
873- * Returns: {Decipher } The same Decipher for method chaining.
873+ * Returns: {Decipheriv } The same Decipher for method chaining.
874874
875875When using an authenticated encryption mode (` GCM ` , ` CCM ` , ` OCB ` , and
876876` chacha20-poly1305 ` are
@@ -912,7 +912,7 @@ changes:
912912
913913* ` buffer ` {string|Buffer|ArrayBuffer|TypedArray|DataView}
914914* ` encoding ` {string} String encoding to use when ` buffer ` is a string.
915- * Returns: {Decipher } The same Decipher for method chaining.
915+ * Returns: {Decipheriv } The same Decipher for method chaining.
916916
917917When using an authenticated encryption mode (` GCM ` , ` CCM ` , ` OCB ` , and
918918` chacha20-poly1305 ` are
@@ -938,7 +938,7 @@ added: v0.7.1
938938-->
939939
940940* ` autoPadding ` {boolean} ** Default:** ` true `
941- * Returns: {Decipher } The same Decipher for method chaining.
941+ * Returns: {Decipheriv } The same Decipher for method chaining.
942942
943943When data has been encrypted without standard block padding, calling
944944` decipher.setAutoPadding(false) ` will disable automatic padding to prevent
@@ -3036,9 +3036,9 @@ changes:
30363036* ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey}
30373037* ` iv ` {string|ArrayBuffer|Buffer|TypedArray|DataView|null}
30383038* ` options ` {Object} [ ` stream.transform ` options] [ ]
3039- * Returns: {Cipher }
3039+ * Returns: {Cipheriv }
30403040
3041- Creates and returns a ` Cipher ` object, with the given ` algorithm ` , ` key ` and
3041+ Creates and returns a ` Cipheriv ` object, with the given ` algorithm ` , ` key ` and
30423042initialization vector (` iv ` ).
30433043
30443044The ` options ` argument controls stream behavior and is optional except when a
@@ -3106,9 +3106,9 @@ changes:
31063106* ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey}
31073107* ` iv ` {string|ArrayBuffer|Buffer|TypedArray|DataView|null}
31083108* ` options ` {Object} [ ` stream.transform ` options] [ ]
3109- * Returns: {Decipher }
3109+ * Returns: {Decipheriv }
31103110
3111- Creates and returns a ` Decipher ` object that uses the given ` algorithm ` , ` key `
3111+ Creates and returns a ` Decipheriv ` object that uses the given ` algorithm ` , ` key `
31123112and initialization vector (` iv ` ).
31133113
31143114The ` options ` argument controls stream behavior and is optional except when a
0 commit comments