pub enum SignScheme {
RsaPkcs1(HashAlg),
RsaPss(HashAlg),
Ecdsa(HashAlg),
}Expand description
Signature encoding and hash used by PrivateKey::sign.
Variants§
RsaPkcs1(HashAlg)
RSASSA-PKCS1-v1_5.
RsaPss(HashAlg)
RSASSA-PSS, matching MGF1 hash and digest-length salt.
Ecdsa(HashAlg)
ECDSA with DER-encoded (r, s).
Trait Implementations§
Source§impl Clone for SignScheme
impl Clone for SignScheme
Source§fn clone(&self) -> SignScheme
fn clone(&self) -> SignScheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SignScheme
Source§impl Debug for SignScheme
impl Debug for SignScheme
impl Eq for SignScheme
Source§impl PartialEq for SignScheme
impl PartialEq for SignScheme
impl StructuralPartialEq for SignScheme
Auto Trait Implementations§
impl Freeze for SignScheme
impl RefUnwindSafe for SignScheme
impl Send for SignScheme
impl Sync for SignScheme
impl Unpin for SignScheme
impl UnsafeUnpin for SignScheme
impl UnwindSafe for SignScheme
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.