openpgp-notes/book/source/03-cryptography.md
Heiko Schaefer 319f258aca
ch4: work on structure
Move introduction of asymmetric key pairs and diagrams to ch3.
2023-09-25 14:11:44 +02:00

1.6 KiB

Cryptographic concepts/terms

Lars suggests that we should have a chapter where we introduce cryptographic terms that we use, and give short definitions (without getting into how specific algorithms work)

This would be a good place to introduce visualizations for cryptographic primitives

Public-key cryptography

https://en.wikipedia.org/wiki/Public-key_cryptography

Asymmetric cryptographic key pairs

In many places, we'll deal with asymmetric cryptographic key pairs:

Image

A cryptographic key pair consists of a public and a private part. In this document, we'll show the public part of a cryptographic key in green, and the private part in red.

We'll usually visualize cryptographic keypairs in this more compact form:

Image

Note that in many contexts, only the public part is present (more on that later):

Image

Public-key cryptography in OpenPGP

OpenPGP makes heavy use of public-key cryptography. However, for historical reasons, OpenPGP uses the terms "public/secret" instead of "public/private."

So when reading the RFC, or other documentation, you will encounter the term "secret key," instead of the more common "private key."

Symmetric encryption

https://en.wikipedia.org/wiki/Symmetric-key_algorithm

[TODO: visualization?]

Symmetric cryptography in OpenPGP

Symmetric encryption is a core concept in OpenPGP. It usually comes up involving the term "session key."

"Session keys" in OpenPGP are symmetric cryptographic keys.