@@ -263,10 +263,10 @@ The `cipher.setAAD()` method must be called before [`cipher.update()`][].
263
263
<!-- YAML
264
264
added: v1.0.0
265
265
-->
266
- - Returns: {Buffer} When using an authenticated encryption mode (only ` GCM ` is
267
- currently supported), the ` cipher.getAuthTag() ` method returns a [ ` Buffer ` ] [ ]
268
- containing the _ authentication tag_ that has been computed from the given
269
- data.
266
+ - Returns: {Buffer} When using an authenticated encryption mode (only ` GCM ` and
267
+ ` CCM ` are currently supported), the ` cipher.getAuthTag() ` method returns a
268
+ [ ` Buffer ` ] [ ] containing the _ authentication tag_ that has been computed from
269
+ the given data.
270
270
271
271
The ` cipher.getAuthTag() ` method should only be called after encryption has
272
272
been completed using the [ ` cipher.final() ` ] [ ] method.
@@ -411,7 +411,7 @@ changes:
411
411
- ` buffer ` {Buffer | TypedArray | DataView}
412
412
- Returns: {Cipher} for method chaining.
413
413
414
- When using an authenticated encryption mode (only ` GCM ` is currently
414
+ When using an authenticated encryption mode (only ` GCM ` and ` CCM ` are currently
415
415
supported), the ` decipher.setAAD() ` method sets the value used for the
416
416
_ additional authenticated data_ (AAD) input parameter.
417
417
@@ -428,7 +428,7 @@ changes:
428
428
- ` buffer ` {Buffer | TypedArray | DataView}
429
429
- Returns: {Cipher} for method chaining.
430
430
431
- When using an authenticated encryption mode (only ` GCM ` is currently
431
+ When using an authenticated encryption mode (only ` GCM ` and ` CCM ` are currently
432
432
supported), the ` decipher.setAuthTag() ` method is used to pass in the
433
433
received _ authentication tag_ . If no tag is provided, or if the cipher text
434
434
has been tampered with, [ ` decipher.final() ` ] [ ] will throw, indicating that the
0 commit comments