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:
parent
096e44a8a9
commit
3a3dfbde14
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user