pub enum SignatureBytes {
Mpis(Vec<Mpi>),
Native(Vec<u8>),
}
Expand description
An OpenPGP cryptographic signature.
It is an element of a crate::packet::Signature packet. Historically, cryptographic signatures in OpenPGP were encoded as crate::types::Mpi, however, in RFC 9580, native encoding is used for the modern Ed25519 and Ed448 signatures.
This type can represent both flavors of cryptographic signature data.
Variants§
Mpis(Vec<Mpi>)
A cryptographic signature that is represented as a set of Mpis.
This format has been used for all OpenPGP cryptographic signatures in RFCs 4880 and 6637.
Native(Vec<u8>)
A cryptographic signature that is represented in native format.
This format was introduced in RFC 9580 and is currently only used for Ed25519 and Ed448.
Trait Implementations§
Source§impl Clone for SignatureBytes
impl Clone for SignatureBytes
Source§fn clone(&self) -> SignatureBytes
fn clone(&self) -> SignatureBytes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SignatureBytes
impl Debug for SignatureBytes
Source§impl PartialEq for SignatureBytes
impl PartialEq for SignatureBytes
Source§impl<'a> TryFrom<&'a SignatureBytes> for &'a [Mpi]
impl<'a> TryFrom<&'a SignatureBytes> for &'a [Mpi]
Source§impl<'a> TryFrom<&'a SignatureBytes> for &'a [u8]
impl<'a> TryFrom<&'a SignatureBytes> for &'a [u8]
impl Eq for SignatureBytes
impl StructuralPartialEq for SignatureBytes
Auto Trait Implementations§
impl Freeze for SignatureBytes
impl RefUnwindSafe for SignatureBytes
impl Send for SignatureBytes
impl Sync for SignatureBytes
impl Unpin for SignatureBytes
impl UnwindSafe for SignatureBytes
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
Mutably borrows from an owned value. Read more