Skip to content

Commit ffd1933

Browse files
tniessenruyadorno
authored andcommitted
doc: use Oxford comma in crypto docs
PR-URL: #41875 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent bfddcb1 commit ffd1933

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/crypto.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ once will result in an error being thrown.
543543
added: v1.0.0
544544
-->
545545

546-
* Returns: {Buffer} When using an authenticated encryption mode (`GCM`, `CCM`
546+
* Returns: {Buffer} When using an authenticated encryption mode (`GCM`, `CCM`,
547547
and `OCB` are currently supported), the `cipher.getAuthTag()` method returns a
548548
[`Buffer`][] containing the _authentication tag_ that has been computed from
549549
the given data.
@@ -566,7 +566,7 @@ added: v1.0.0
566566
* `encoding` {string} The string encoding to use when `buffer` is a string.
567567
* Returns: {Cipher} for method chaining.
568568

569-
When using an authenticated encryption mode (`GCM`, `CCM` and `OCB` are
569+
When using an authenticated encryption mode (`GCM`, `CCM`, and `OCB` are
570570
currently supported), the `cipher.setAAD()` method sets the value used for the
571571
_additional authenticated data_ (AAD) input parameter.
572572

@@ -863,7 +863,7 @@ changes:
863863
* `encoding` {string} String encoding to use when `buffer` is a string.
864864
* Returns: {Decipher} for method chaining.
865865

866-
When using an authenticated encryption mode (`GCM`, `CCM` and `OCB` are
866+
When using an authenticated encryption mode (`GCM`, `CCM`, and `OCB` are
867867
currently supported), the `decipher.setAAD()` method sets the value used for the
868868
_additional authenticated data_ (AAD) input parameter.
869869

@@ -897,7 +897,7 @@ changes:
897897
* `encoding` {string} String encoding to use when `buffer` is a string.
898898
* Returns: {Decipher} for method chaining.
899899

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

0 commit comments

Comments
 (0)