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