Enum tugger_apple_codesign::DigestType [−][src]
pub enum DigestType { None, Sha1, Sha256, Sha256Truncated, Sha384, Sha512, Unknown(u8), }
Represents a digest type from a CS_HASHTYPE_* constants.
Variants
Unknown(u8)
Implementations
impl DigestType
[src]
impl DigestType
[src]pub fn hash_len(&self) -> Result<usize, AppleCodesignError>
[src]
Obtain the size of hashes for this hash type.
pub fn as_hasher(&self) -> Result<Context, AppleCodesignError>
[src]
Obtain a hasher for this digest type.
pub fn digest(&self, data: &[u8]) -> Result<Vec<u8>, AppleCodesignError>
[src]
Digest data given the configured hasher.
Trait Implementations
impl Clone for DigestType
[src]
impl Clone for DigestType
[src]fn clone(&self) -> DigestType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DigestType
[src]
impl Copy for DigestType
[src]impl Default for DigestType
[src]
impl Default for DigestType
[src]impl Eq for DigestType
[src]
impl Eq for DigestType
[src]impl PartialEq<DigestType> for DigestType
[src]
impl PartialEq<DigestType> for DigestType
[src]fn eq(&self, other: &DigestType) -> bool
[src]
fn ne(&self, other: &DigestType) -> bool
[src]
impl StructuralEq for DigestType
[src]
impl StructuralEq for DigestType
[src]impl StructuralPartialEq for DigestType
[src]
impl StructuralPartialEq for DigestType
[src]Auto Trait Implementations
impl RefUnwindSafe for DigestType
impl RefUnwindSafe for DigestType
impl Send for DigestType
impl Send for DigestType
impl Sync for DigestType
impl Sync for DigestType
impl Unpin for DigestType
impl Unpin for DigestType
impl UnwindSafe for DigestType
impl UnwindSafe for DigestType
Blanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument 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> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]