pgpfan:pgpauth
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pgpfan:pgpauth [2025/10/10 21:53] – [The PGP OCFB Encryption Mode] Better explanation order. b.walzer | pgpfan:pgpauth [2025/11/01 11:57] (current) – [The Why of PGP Authentication] Typo b.walzer | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======The Why of PGP Authentication====== | + | ======The Why of PGP Authentication====== |
| There seems to be an ongoing misunderstanding of how PGP actually does authentication. That ends up being important in various discussions. Let's dig into perhaps the more interesting question of //why// PGP does the things it does and pick up the //how// along the way. | There seems to be an ongoing misunderstanding of how PGP actually does authentication. That ends up being important in various discussions. Let's dig into perhaps the more interesting question of //why// PGP does the things it does and pick up the //how// along the way. | ||
| Line 5: | Line 5: | ||
| Authentication in a PGP context is a mechanism that makes it possible for the recipient of a file/ | Authentication in a PGP context is a mechanism that makes it possible for the recipient of a file/ | ||
| - | Cryptographic signatures will be important here so we should briefly define the term. The generation of a [[wp> | + | Cryptographic signatures will be important here so we should briefly define the term. The generation of a [[wp> |
| =====PGP Authentication Doesn' | =====PGP Authentication Doesn' | ||
| Line 76: | Line 76: | ||
| =====The PGP OCFB Encryption Mode===== | =====The PGP OCFB Encryption Mode===== | ||
| + | |||
| + | The very existence of this mode seems to confuse people... | ||
| This is an encryption mode with no integrity check((The PGP OCFB mode is contained in the OpenPGP Symmetrical Encryption Data packet (SED).)). It is pure encryption. We should have a pretty good idea at this point why it exists. Since PGP authentication is done directly on the data there is simply no need for an integrity check. An encryption mode that provided an integrity check feature would be redundant and would cause inefficiency. | This is an encryption mode with no integrity check((The PGP OCFB mode is contained in the OpenPGP Symmetrical Encryption Data packet (SED).)). It is pure encryption. We should have a pretty good idea at this point why it exists. Since PGP authentication is done directly on the data there is simply no need for an integrity check. An encryption mode that provided an integrity check feature would be redundant and would cause inefficiency. | ||
| - | The very existence of this mode seems to confuse people... | ||
| =====The PGP OCFB-MDC Encryption Mode===== | =====The PGP OCFB-MDC Encryption Mode===== | ||
| - | So there is a PGP encryption mode //with// an integrity check((The PGP OCFB-MDC mode is contained in the OpenPGP Symmetrical Encryption Integrity Protected Data packet (SEIPD).)). For those of us who know how PGP authentication works the existence of //this// mode is confusing. | + | So... This is awkward... |
| + | |||
| + | OCFB-MDC | ||
| People were happily and securely using the OCFB encryption mode with PGP authentication for many years. The OCFB-MDC mode came along later. | People were happily and securely using the OCFB encryption mode with PGP authentication for many years. The OCFB-MDC mode came along later. | ||
| - | A valid OCFB-MDC integrity check insures: | + | A valid OCFB-MDC integrity check ensures: |
| - The file/ | - The file/ | ||
| - | Since there is nothing like the "TLS handshake" | + | Since there is nothing like the "TLS handshake" |
| So why does the OCFB-MDC encryption mode exist at all? It's specifically for the case of anonymous (unsigned, unauthenticated) files/ | So why does the OCFB-MDC encryption mode exist at all? It's specifically for the case of anonymous (unsigned, unauthenticated) files/ | ||
| - | In practice almost all implementations will emit OCFB-MDC encrypted messages even if the file/ | + | In practice almost all PGP implementations will emit OCFB-MDC encrypted messages even if the file/ |
| When working with PGP, it is important to clearly understand the difference between authentication and the integrity check. The integrity check is limited and often full authentication is required or more desirable. | When working with PGP, it is important to clearly understand the difference between authentication and the integrity check. The integrity check is limited and often full authentication is required or more desirable. | ||
| + | |||
| + | [[em: | ||
| + | [[pgpfan: | ||
| + | [[:|Home]] | ||
| + | |||
pgpfan/pgpauth.1760133199.txt.gz · Last modified: by b.walzer
