The Call of the Open Sidewalk

From a place slightly to the side of the more popular path

User Tools

Site Tools


This is an old revision of the document!

PGP is a Form of Minimalism

As a protocol, PGP is surprising simple. Here is what happens if you want to use it to securely send a message to someone:

  1. You get from them a PGP identity (public key). How you do that is entirely up to you.
  2. Your PGP program uses that identity to perform a single public key encryption of a message key.
  3. Then the message key is used to encrypt the message which is added to the encrypted message key to make the encrypted message.
  4. Your correspondent does the opposite operations to get the message.

If you want to sign your message (a separate operation in PGP) then you:

  1. Hash the message.
  2. Do a public key signature operation on the hash and attach the result to the message.
  3. Your correspondent checks the signature from your PGP identity, which they have acquired somehow.

The simple key handling is where the minimalism comes from. It is why PGP can be used in so many non-email contexts.

As a contrast, consider the Signal Protocol for instant messaging. I will not attempt to describe Signal in any detail as I would get parts of it wrong. It would also make for a pointlessly long article. There is a high level description of the Signal protocol here. Some comments:

  • Signal has at least 2 systems for creating forward secrecy. Each of those systems has a system to detect and deal with loss of synchronization.
  • Because of the integration of authentication and encryption, more functionality is required to undo the authentication and produce deniability.
  • A Signal session requires the storage and maintenance of a lot of state information.
  • Signal constantly generates new keys.

The Signal Protocol is built on ideas from the Off the Record (OTR) protocol. Interestingly enough, OTR was intended to improve PGP by adding extra functionality. Signal adds functionality on top of the OTR functionality. So Signal could be considered the result of an attempt to improve something by making it more complex. I am one of those that feel that reliability and security are best achieved with simple systems.

pgpfan/minimalist.1590607745.txt.gz ยท Last modified: 2020/05/27 19:29 by b.walzer