pub enum DigestAlgorithm {
Sha1ForCompatibility,
Sha1,
Sha256,
Sha384,
Sha512,
Custom(String),
}Expand description
XML digest algorithm URI used by XML-DSig profiles.
Custom URI values are forwarded to the configured crypto backend and can still fail at runtime when unsupported by that backend.
Variants§
Sha1ForCompatibility
SHA-1 digest for legacy interoperability.
Sha1
👎Deprecated:
use DigestAlgorithm::Sha1ForCompatibility
Deprecated alias for Self::Sha1ForCompatibility.
Sha256
SHA-256 digest.
Sha384
SHA-384 digest.
Sha512
SHA-512 digest.
Custom(String)
Backend-specific digest algorithm URI.
Implementations§
Trait Implementations§
Source§impl Clone for DigestAlgorithm
impl Clone for DigestAlgorithm
Source§fn clone(&self) -> DigestAlgorithm
fn clone(&self) -> DigestAlgorithm
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 moreSource§impl Debug for DigestAlgorithm
impl Debug for DigestAlgorithm
impl Eq for DigestAlgorithm
Source§impl PartialEq for DigestAlgorithm
impl PartialEq for DigestAlgorithm
impl StructuralPartialEq for DigestAlgorithm
Auto Trait Implementations§
impl Freeze for DigestAlgorithm
impl RefUnwindSafe for DigestAlgorithm
impl Send for DigestAlgorithm
impl Sync for DigestAlgorithm
impl Unpin for DigestAlgorithm
impl UnsafeUnpin for DigestAlgorithm
impl UnwindSafe for DigestAlgorithm
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