[][src]Module sequoia_openpgp::crypto

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

hash

Cryptographic hash functions and hashing of OpenPGP data structures.

mem

Memory protection and encryption.

mpi

Multiprecision Integers.

sexp

S-Expressions for communicating cryptographic primitives.

Structs

KeyPair

A cryptographic key pair.

Keygrip

A proprietary, protocol agnostic identifier for public keys.

Password

Holds a password.

SessionKey

Holds a session key.

Enums

S2K

String-to-Key (S2K) specifiers.

Traits

Decryptor

Decrypts a message.

Signer

Creates a signature.

Functions

hash_reader

Hashes the given reader.

random

Fills the given buffer with random data.