Module types

Source
Expand description

Primitive types.

This module provides types used in OpenPGP, like enumerations describing algorithms.

§Common Operations

§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.
CompressionLevel
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.
KeyServerPreferences
Describes preferences regarding key servers.
RevocationKey
Designates a key as a valid third-party revoker.
Timestamp
A timestamp representable by OpenPGP.

Enums§

CompressionAlgorithm
The OpenPGP compression algorithms as defined in Section 9.4 of RFC 9580.
DataFormat
Describes the format of the body of a literal data packet.
ReasonForRevocation
Describes the reason for a revocation.
RevocationStatus
The revocation status.
RevocationType
Describes whether a ReasonForRevocation should be consider hard or soft.
SignatureType
Signature type as defined in Section 5.2.1 of RFC 9580.