Be clear that a lack of authentication often means you don't have secrecy (#5454)

This commit is contained in:
Alex Gaynor 2020-09-05 11:46:34 -04:00 committed by GitHub
parent ad05ebbb32
commit 3367c18bf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,8 @@ where the sender and receiver both use the same secret key. Note that symmetric
encryption is **not** sufficient for most applications because it only
provides secrecy but not authenticity. That means an attacker can't see the
message but an attacker can create bogus messages and force the application to
decrypt them.
decrypt them. In many contexts, a lack of authentication on encrypted messages
can result in a loss of secrecy as well.
For this reason it is **strongly** recommended to combine encryption with a
message authentication code, such as :doc:`HMAC </hazmat/primitives/mac/hmac>`,