#[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
Implementations§
Methods from Deref<Target = AED1>§
Sourcepub fn symmetric_algo(&self) -> SymmetricAlgorithm
pub fn symmetric_algo(&self) -> SymmetricAlgorithm
Gets the symmetric algorithm.
Sourcepub fn set_symmetric_algo(
&mut self,
sym_algo: SymmetricAlgorithm,
) -> SymmetricAlgorithm
pub fn set_symmetric_algo( &mut self, sym_algo: SymmetricAlgorithm, ) -> SymmetricAlgorithm
Sets the symmetric algorithm.
Sourcepub fn aead(&self) -> AEADAlgorithm
pub fn aead(&self) -> AEADAlgorithm
Gets the AEAD algorithm.
Sourcepub fn set_aead(&mut self, aead: AEADAlgorithm) -> AEADAlgorithm
pub fn set_aead(&mut self, aead: AEADAlgorithm) -> AEADAlgorithm
Sets the AEAD algorithm.
Sourcepub fn chunk_size(&self) -> u64
pub fn chunk_size(&self) -> u64
Gets the chunk size.
Sourcepub fn set_chunk_size(&mut self, chunk_size: u64) -> Result<()>
pub fn set_chunk_size(&mut self, chunk_size: u64) -> Result<()>
Sets the chunk size.
Sourcepub fn chunk_digest_size(&self) -> Result<u64>
pub fn chunk_digest_size(&self) -> Result<u64>
Gets the size of a chunk with a digest.
Methods from Deref<Target = Container>§
Sourcepub fn children_ref(&self) -> Option<&[Packet]>
pub fn children_ref(&self) -> Option<&[Packet]>
Returns a reference to this Packet’s children.
Returns None
if the body is not structured.
Sourcepub fn children_mut(&mut self) -> Option<&mut Vec<Packet>>
pub fn children_mut(&mut self) -> Option<&mut Vec<Packet>>
Returns a mutable reference to this Packet’s children.
Returns None
if the body is not structured.
Sourcepub fn descendants(&self) -> Option<Iter<'_>>
pub fn descendants(&self) -> Option<Iter<'_>>
Returns an iterator over the packet’s descendants. The descendants are visited in depth-first order.
Returns None
if the body is not structured.
Trait Implementations§
Source§impl Any<AED> for Packet
impl Any<AED> for Packet
Source§impl IntoIterator for AED
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
impl IntoIterator for AED
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.