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 2024-07-11 15:40:39 +02:00 committed by GitHub
parent 096e44a8a9
commit 3a3dfbde14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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