Skip to content

Commit 3bb9d4e

Browse files
committedApr 11, 2018
doc: mention CCM along with GCM in crypto APIs
Refs: nodejs#18138
1 parent b3bff41 commit 3bb9d4e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎doc/api/crypto.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ The `cipher.setAAD()` method must be called before [`cipher.update()`][].
263263
<!-- YAML
264264
added: v1.0.0
265265
-->
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.
270270

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

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

@@ -428,7 +428,7 @@ changes:
428428
- `buffer` {Buffer | TypedArray | DataView}
429429
- Returns: {Cipher} for method chaining.
430430

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

0 commit comments

Comments
 (0)
Please sign in to comment.