Expand description
Primitive types.
This module provides types used in OpenPGP, like enumerations describing algorithms.
§Common Operations
- Rounding the creation time of signatures: See the
Timestamp::round_down
method. - Checking key usage flags: See the
KeyFlags
data structure. - Setting key validity ranges: See the
Timestamp
andDuration
data structures.
§Data structures
§CompressionLevel
Allows adjusting the amount of effort spent on compressing encoded data. This structure additionally has several helper methods for commonly used compression strategies.
§Features
Describes particular features supported by the given OpenPGP implementation.
§KeyFlags
Holds information about a key in particular how the given key can be used.
§RevocationKey
Describes a key that has been designated to issue revocation signatures.
§KeyServerPreferences
Describes preferences regarding to key servers.
§Timestamp
and Duration
In OpenPGP time is represented as the number of seconds since the UNIX epoch stored
as an u32
. These two data structures allow manipulating OpenPGP time ensuring
that adding or subtracting durations will never overflow or underflow without
notice.
Re-exports§
pub use crate::crypto::AEADAlgorithm;
pub use crate::crypto::Curve;
pub use crate::crypto::HashAlgorithm;
pub use crate::crypto::PublicKeyAlgorithm;
pub use crate::crypto::SymmetricAlgorithm;
Structs§
- Bitfield
- A variable-sized set of boolean flags.
- Compression
Level - Compression level.
- Duration
- A duration representable by OpenPGP.
- Features
- Describes the features supported by an OpenPGP implementation.
- KeyFlags
- Describes how a key may be used, and stores additional information.
- KeyServer
Preferences - Describes preferences regarding key servers.
- Revocation
Key - Designates a key as a valid third-party revoker.
- Timestamp
- A timestamp representable by OpenPGP.
Enums§
- Compression
Algorithm - The OpenPGP compression algorithms as defined in Section 9.4 of RFC 9580.
- Data
Format - Describes the format of the body of a literal data packet.
- Reason
ForRevocation - Describes the reason for a revocation.
- Revocation
Status - The revocation status.
- Revocation
Type - Describes whether a
ReasonForRevocation
should be consider hard or soft. - Signature
Type - Signature type as defined in Section 5.2.1 of RFC 9580.