Skip to content

Commit f64db24

Browse files
tniessenmarco-ippolito
authored andcommitted
doc: clarify authenticity of plaintexts in update
PR-URL: #53784 Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
1 parent ce877c6 commit f64db24

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/crypto.md

+5
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,11 @@ The `decipher.update()` method can be called multiple times with new data until
978978
[`decipher.final()`][] is called. Calling `decipher.update()` after
979979
[`decipher.final()`][] will result in an error being thrown.
980980

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

983988
<!-- YAML

0 commit comments

Comments
 (0)