Expand description

Cryptographic primitives.

This module contains cryptographic primitives as defined and used by OpenPGP. It abstracts over the cryptographic library chosen at compile time. Most of the time, it will not be necessary to explicitly use types from this module directly, but they are used in the API (e.g. Password). Advanced users may use these primitives to provide custom extensions to OpenPGP.

Common Operations


Elliptic-curve Diffie-Hellman.

Cryptographic hash functions and hashing of OpenPGP data structures.

Memory protection and encryption.

Multiprecision Integers.


A cryptographic key pair.

Holds a password.

Holds a session key.


String-to-Key (S2K) specifiers.


Decrypts a message.

Creates a signature.


Returns a short, human-readable description of the backend.

Fills the given buffer with random data.