Enum sequoia_openpgp::crypto::mpi::Signature [−][src]
#[non_exhaustive] pub enum Signature { RSA { s: MPI, }, DSA { r: MPI, s: MPI, }, ElGamal { r: MPI, s: MPI, }, EdDSA { r: MPI, s: MPI, }, ECDSA { r: MPI, s: MPI, }, Unknown { mpis: Box<[MPI]>, rest: Box<[u8]>, }, }
A cryptographic signature.
Provides a typed and structured way of storing multiple MPIs in
Signature
packets.
Note: This enum cannot be exhaustively matched to allow future extensions.
Variants (Non-exhaustive)
RSA signature.
Show fields
Fields of RSA
s: MPI
Signature m^d mod N.
NIST’s DSA signature.
ElGamal signature.
DJB’s “Twisted” Edwards curve DSA signature.
NIST’s Elliptic curve DSA signature.
Unknown number of MPIs for an unknown algorithm.
Show fields
Implementations
impl Signature
[src]
impl Signature
[src]pub fn parse<R: Read + Send + Sync>(
algo: PublicKeyAlgorithm,
reader: R
) -> Result<Self>
[src]
pub fn parse<R: Read + Send + Sync>(
algo: PublicKeyAlgorithm,
reader: R
) -> Result<Self>
[src]Parses a set of OpenPGP MPIs representing a signature.
Expects MPIs for a public key algorithm algo
s signature.
See Section 3.2 of RFC 4880 for details.
Trait Implementations
impl MarshalInto for Signature
[src]
impl MarshalInto for Signature
[src]impl Ord for Signature
[src]
impl Ord for Signature
[src]impl PartialOrd<Signature> for Signature
[src]
impl PartialOrd<Signature> for Signature
[src]fn partial_cmp(&self, other: &Signature) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Signature) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Signature
[src]
impl StructuralEq for Signature
[src]
impl StructuralPartialEq for Signature
[src]
Auto Trait Implementations
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more