Enum cryptographic_message_syntax::SignatureAlgorithm [−][src]
An algorithm used to digitally sign content.
Instances can be converted to/from the underlying ASN.1 type and OIDs.
Variants
SHA-1 with RSA encryption.
Corresponds to OID 1.2.840.113549.1.1.5.
SHA-256 with RSA encryption.
Corresponds to OID 1.2.840.113549.1.1.11.
RSAES-PKCS1-v1_5 encryption scheme.
Corresponds to OID 1.2.840.113549.1.1.1.
ECDSA with SHA-256.
Corresponds to OID 1.2.840.10045.4.3.2.
ED25519
Corresponds to OID 1.3.101.112.
Implementations
impl SignatureAlgorithm
[src]
pub fn as_verification_algorithm(&self) -> &'static dyn VerificationAlgorithm
[src]
Convert this algorithm into a verification algorithm.
This enables you to easily obtain a ring signature verified based on the type of algorithm.
Trait Implementations
impl Clone for SignatureAlgorithm
[src]
fn clone(&self) -> SignatureAlgorithm
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SignatureAlgorithm
[src]
impl Debug for SignatureAlgorithm
[src]
impl Eq for SignatureAlgorithm
[src]
impl From<&'_ SigningKey> for SignatureAlgorithm
[src]
fn from(key: &SigningKey) -> Self
[src]
impl From<SignatureAlgorithm> for SignatureAlgorithmIdentifier
[src]
fn from(alg: SignatureAlgorithm) -> Self
[src]
impl PartialEq<SignatureAlgorithm> for SignatureAlgorithm
[src]
fn eq(&self, other: &SignatureAlgorithm) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SignatureAlgorithm
[src]
impl StructuralPartialEq for SignatureAlgorithm
[src]
impl TryFrom<&'_ AlgorithmIdentifier> for SignatureAlgorithm
[src]
type Error = CmsError
The type returned in the event of a conversion error.
fn try_from(v: &SignatureAlgorithmIdentifier) -> Result<Self, Self::Error>
[src]
impl TryFrom<&'_ Oid<Bytes>> for SignatureAlgorithm
[src]
Auto Trait Implementations
impl RefUnwindSafe for SignatureAlgorithm
impl Send for SignatureAlgorithm
impl Sync for SignatureAlgorithm
impl Unpin for SignatureAlgorithm
impl UnwindSafe for SignatureAlgorithm
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,