Skip to content

Commit 3a3dfbd

Browse files
authored
doc: clarify authenticity of plaintexts in update
PR-URL: #53784 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent 096e44a commit 3a3dfbd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

doc/api/crypto.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,11 @@ The `decipher.update()` method can be called multiple times with new data until
980980
[`decipher.final()`][] is called. Calling `decipher.update()` after
981981
[`decipher.final()`][] will result in an error being thrown.
982982

983+
Even if the underlying cipher implements authentication, the authenticity and
984+
integrity of the plaintext returned from this function may be uncertain at this
985+
time. For authenticated encryption algorithms, authenticity is generally only
986+
established when the application calls [`decipher.final()`][].
987+
983988
## Class: `DiffieHellman`
984989

985990
<!-- YAML

0 commit comments

Comments
 (0)