Module prs_lib::crypto [−][src]
Crypto interface.
This module provides an interface to all cryptography features that are used in prs.
It supports multiple cryptography protocols (e.g. GPG) and multiple backends (e.g. GPGME, GnuPG). The list of supported protocols and backends may be extended in the future.
Modules
backend | Crypto backends. |
prelude | Prelude for common crypto traits. |
proto | Crypto protocols. |
recipients | Provides interface for crypto recipients. |
store | Helpers to use recipients with password store. |
util | Common crypto utilities. |
Structs
Context | Generic context. |
ContextPool | A pool of proto contexts. |
Enums
Err | Crypto error. |
Key | Represents a key. |
Proto | Crypto protocol. |
Constants
PROTO | Default proto. |
Traits
IsContext | Defines generic crypto context. |
Functions
context | Get crypto context for given proto type at runtime. |