Enum sequoia_openpgp::packet::AED[][src]

#[non_exhaustive]
pub enum AED {
    V1(AED1),
}
Expand description

Holds an AEAD encrypted data packet.

An AEAD packet holds encrypted data. It is contains additional OpenPGP packets. See Section 5.16 of RFC 4880bis for details.

Note: This enum cannot be exhaustively matched to allow future extensions.

An AEAD packet is not normally instantiated directly. In most cases, you’ll create one as a side-effect of encrypting a message using the streaming serializer, or parsing an encrypted message using the PacketParser.

This feature is experimental.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

V1(AED1)

Tuple Fields

0: AED1

AED packet version 1.

Implementations

Gets the version.

Methods from Deref<Target = AED1>

Gets the symmetric algorithm.

Sets the symmetric algorithm.

Gets the AEAD algorithm.

Sets the AEAD algorithm.

Gets the chunk size.

Sets the chunk size.

Gets the size of a chunk with a digest.

Gets the initialization vector for the AEAD algorithm.

Sets the initialization vector for the AEAD algorithm.

Methods from Deref<Target = Container>

Returns a reference to this Packet’s children.

Returns None if the body is not structured.

Returns a mutable reference to this Packet’s children.

Returns None if the body is not structured.

Returns an iterator over the packet’s descendants. The descendants are visited in depth-first order.

Returns None if the body is not structured.

Returns an iterator over the packet’s immediate children.

Returns None if the body is not structured.

Gets the packet’s body.

Sets the packet’s body.

Trait Implementations

Attempts to downcast to T, returning the packet if it fails. Read more

Attempts to downcast to &T, returning None if it fails. Read more

Attempts to downcast to &mut T, returning None if it fails. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Implement IntoIterator so that cert::insert_packets(sig) just works.

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Writes a serialized version of the object to o.

Exports a serialized version of the object to o. Read more

Computes the maximal length of the serialized representation. Read more

Serializes into the given buffer. Read more

Serializes the packet to a vector.

Exports into the given buffer. Read more

Exports to a vector. Read more

Reads from the given reader.

Reads from the given file. Read more

Reads from the given slice. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.