logo

Module sequoia_openpgp::crypto[][src]

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

Modules

Elliptic-curve Diffie-Hellman.

Cryptographic hash functions and hashing of OpenPGP data structures.

Memory protection and encryption.

Multiprecision Integers.

Structs

A cryptographic key pair.

Holds a password.

Holds a session key.

Enums

String-to-Key (S2K) specifiers.

Traits

Decrypts a message.

Creates a signature.

Functions

Fills the given buffer with random data.