@@ -543,7 +543,7 @@ once will result in an error being thrown.
543
543
added: v1.0.0
544
544
-->
545
545
546
- * Returns: {Buffer} When using an authenticated encryption mode (` GCM ` , ` CCM `
546
+ * Returns: {Buffer} When using an authenticated encryption mode (` GCM ` , ` CCM ` ,
547
547
and ` OCB ` are currently supported), the ` cipher.getAuthTag() ` method returns a
548
548
[ ` Buffer ` ] [ ] containing the _ authentication tag_ that has been computed from
549
549
the given data.
@@ -566,7 +566,7 @@ added: v1.0.0
566
566
* ` encoding ` {string} The string encoding to use when ` buffer ` is a string.
567
567
* Returns: {Cipher} for method chaining.
568
568
569
- When using an authenticated encryption mode (` GCM ` , ` CCM ` and ` OCB ` are
569
+ When using an authenticated encryption mode (` GCM ` , ` CCM ` , and ` OCB ` are
570
570
currently supported), the ` cipher.setAAD() ` method sets the value used for the
571
571
_ additional authenticated data_ (AAD) input parameter.
572
572
@@ -863,7 +863,7 @@ changes:
863
863
* ` encoding ` {string} String encoding to use when ` buffer ` is a string.
864
864
* Returns: {Decipher} for method chaining.
865
865
866
- When using an authenticated encryption mode (` GCM ` , ` CCM ` and ` OCB ` are
866
+ When using an authenticated encryption mode (` GCM ` , ` CCM ` , and ` OCB ` are
867
867
currently supported), the ` decipher.setAAD() ` method sets the value used for the
868
868
_ additional authenticated data_ (AAD) input parameter.
869
869
@@ -897,7 +897,7 @@ changes:
897
897
* ` encoding ` {string} String encoding to use when ` buffer ` is a string.
898
898
* Returns: {Decipher} for method chaining.
899
899
900
- When using an authenticated encryption mode (` GCM ` , ` CCM ` and ` OCB ` are
900
+ When using an authenticated encryption mode (` GCM ` , ` CCM ` , and ` OCB ` are
901
901
currently supported), the ` decipher.setAuthTag() ` method is used to pass in the
902
902
received _ authentication tag_ . If no tag is provided, or if the cipher text
903
903
has been tampered with, [ ` decipher.final() ` ] [ ] will throw, indicating that the
0 commit comments