doc: clarify authenticity of plaintexts in update

PR-URL: https://github.com/nodejs/node/pull/53784
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
Tobias Nießen authored and GitHub committed 2024-07-11 13:40:39 +00:00
1 parent 096e44a8a9
commit 3a3dfbde14
1 file changed
+5
+5
View File
@@ -980,6 +980,11 @@ The `decipher.update()` method can be called multiple times with new data until
[`decipher.final()`][] is called. Calling `decipher.update()` after
[`decipher.final()`][] will result in an error being thrown.
Even if the underlying cipher implements authentication, the authenticity and
integrity of the plaintext returned from this function may be uncertain at this
time. For authenticated encryption algorithms, authenticity is generally only
established when the application calls [`decipher.final()`][].
## Class: `DiffieHellman`
<!-- YAML