pub enum Algorithm {
Show 14 variants
Sha1,
Sha224,
Sha256,
Sha384,
Sha512,
Md5,
RSA,
Md5WithRSA,
Sha1WithRSA,
Sha224WithRSA,
Sha256WithRSA,
Sha384WithRSA,
Sha512WithRSA,
Unsupported(String),
}
Variants§
Sha1
Sha224
Sha256
Sha384
Sha512
Md5
RSA
Md5WithRSA
Sha1WithRSA
Sha224WithRSA
Sha256WithRSA
Sha384WithRSA
Sha512WithRSA
Unsupported(String)
Implementations§
Source§impl Algorithm
impl Algorithm
pub fn new_digest(&self) -> Result<Box<dyn DynDigest>, PeSignError>
pub fn new_pkcs1v15sign(&self) -> Result<Pkcs1v15Sign, PeSignError>
Trait Implementations§
Source§impl From<AlgorithmIdentifier<Any>> for Algorithm
impl From<AlgorithmIdentifier<Any>> for Algorithm
Source§fn from(value: AlgorithmIdentifierOwned) -> Self
fn from(value: AlgorithmIdentifierOwned) -> Self
Converts to this type from the input type.
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.