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 Marco Ippolito committed 2024-08-19 10:32:35 +02:00
1 parent ce877c6d0f
commit f64db24312
1 file changed
+5
+5
View File
@@ -978,6 +978,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