◐ Shell
clean mode source ↗

doc: clarify authenticity of plaintexts in update · nodejs/node@f64db24

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