diff options
author | Rich Trott <rtrott@gmail.com> | 2018-06-04 12:32:54 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-06-06 21:23:00 -0700 |
commit | 85fe13402659a174773bfecebac6e8bb5164f572 (patch) | |
tree | 11e64ad1b52d37039d517143e10e91a23aed1fc6 /doc/api/crypto.md | |
parent | 25c92a90262e4bdaa97999f5fade56a9551701c9 (diff) | |
download | android-node-v8-85fe13402659a174773bfecebac6e8bb5164f572.tar.gz android-node-v8-85fe13402659a174773bfecebac6e8bb5164f572.tar.bz2 android-node-v8-85fe13402659a174773bfecebac6e8bb5164f572.zip |
doc: remove spaces around slashes
Remove spaces around slash characters in documentation. This change
sometimes rewords the content where the slash construction may not be
what is called for.
PR-URL: https://github.com/nodejs/node/pull/21140
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/crypto.md')
-rw-r--r-- | doc/api/crypto.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index ce5fe6a6d1..a535f55ea6 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2268,7 +2268,7 @@ mode must adhere to certain restrictions when using the cipher API: bytes (`7 ≤ N ≤ 13`). - The length of the plaintext is limited to `2 ** (8 * (15 - N))` bytes. - When decrypting, the authentication tag must be set via `setAuthTag()` before - specifying additional authenticated data and / or calling `update()`. + specifying additional authenticated data or calling `update()`. Otherwise, decryption will fail and `final()` will throw an error in compliance with section 2.6 of [RFC 3610][]. - Using stream methods such as `write(data)`, `end(data)` or `pipe()` in CCM @@ -2278,8 +2278,8 @@ mode must adhere to certain restrictions when using the cipher API: option. This is not necessary if no AAD is used. - As CCM processes the whole message at once, `update()` can only be called once. -- Even though calling `update()` is sufficient to encrypt / decrypt the message, - applications *must* call `final()` to compute and / or verify the +- Even though calling `update()` is sufficient to encrypt/decrypt the message, + applications *must* call `final()` to compute or verify the authentication tag. ```js |