Enum sequoia_openpgp::packet::AED
source · #[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
impl IntoIterator for AED
Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
source§impl MarshalInto for AED
impl MarshalInto for AED
source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
source§fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
source§impl<'a> Parse<'a, AED> for AED
impl<'a> Parse<'a, AED> for AED
source§fn from_buffered_reader<R>(reader: R) -> Result<Self>where
R: BufferedReader<Cookie> + 'a,
fn from_buffered_reader<R>(reader: R) -> Result<Self>where
R: BufferedReader<Cookie> + 'a,
source§fn from_reader<R: 'a + Read + Send + Sync>(reader: R) -> Result<Self>
fn from_reader<R: 'a + Read + Send + Sync>(reader: R) -> Result<Self>
impl Eq for AED
impl StructuralPartialEq for AED
Auto Trait Implementations§
impl Freeze for AED
impl RefUnwindSafe for AED
impl Send for AED
impl Sync for AED
impl Unpin for AED
impl UnwindSafe for AED
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)