Skip to content

Commit 0d1b77e

Browse files
tniessenjasnell
authored andcommitted
doc: mention CCM along with GCM in crypto APIs
PR-URL: #19945 Refs: #18138 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent fc17e2d commit 0d1b77e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/api/crypto.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ The `cipher.setAAD()` method must be called before [`cipher.update()`][].
262262
<!-- YAML
263263
added: v1.0.0
264264
-->
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.
269269

270270
The `cipher.getAuthTag()` method should only be called after encryption has
271271
been completed using the [`cipher.final()`][] method.
@@ -409,7 +409,7 @@ changes:
409409
- `buffer` {Buffer | TypedArray | DataView}
410410
- Returns: {Cipher} for method chaining.
411411

412-
When using an authenticated encryption mode (only `GCM` is currently
412+
When using an authenticated encryption mode (only `GCM` and `CCM` are currently
413413
supported), the `decipher.setAAD()` method sets the value used for the
414414
_additional authenticated data_ (AAD) input parameter.
415415

@@ -426,7 +426,7 @@ changes:
426426
- `buffer` {Buffer | TypedArray | DataView}
427427
- Returns: {Cipher} for method chaining.
428428

429-
When using an authenticated encryption mode (only `GCM` is currently
429+
When using an authenticated encryption mode (only `GCM` and `CCM` are currently
430430
supported), the `decipher.setAuthTag()` method is used to pass in the
431431
received _authentication tag_. If no tag is provided, or if the cipher text
432432
has been tampered with, [`decipher.final()`][] will throw, indicating that the

0 commit comments

Comments
 (0)