#[repr(transparent)]pub struct SecCSDigestAlgorithm(pub u32);
Available on crate feature
CSCommon
only.Expand description
Types of cryptographic digests (hashes) used to hold code signatures together.
Each combination of type, length, and other parameters is a separate hash type; we don’t understand “families” here.
These type codes govern the digest links that connect a CodeDirectory to its subordinate data structures (code pages, resources, etc.) They do not directly control other uses of hashes (such as those used within X.509 certificates and CMS blobs).
See also Apple’s documentation
Tuple Fields§
§0: u32
Implementations§
Source§impl SecCSDigestAlgorithm
impl SecCSDigestAlgorithm
pub const CodeSignatureNoHash: Self
pub const CodeSignatureHashSHA1: Self
pub const CodeSignatureHashSHA256: Self
pub const CodeSignatureHashSHA256Truncated: Self
pub const CodeSignatureHashSHA384: Self
pub const CodeSignatureHashSHA512: Self
Trait Implementations§
Source§impl Clone for SecCSDigestAlgorithm
impl Clone for SecCSDigestAlgorithm
Source§fn clone(&self) -> SecCSDigestAlgorithm
fn clone(&self) -> SecCSDigestAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · 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 SecCSDigestAlgorithm
impl Debug for SecCSDigestAlgorithm
Source§impl Encode for SecCSDigestAlgorithm
Available on crate feature objc2
only.
impl Encode for SecCSDigestAlgorithm
Available on crate feature
objc2
only.Source§impl Hash for SecCSDigestAlgorithm
impl Hash for SecCSDigestAlgorithm
Source§impl Ord for SecCSDigestAlgorithm
impl Ord for SecCSDigestAlgorithm
Source§fn cmp(&self, other: &SecCSDigestAlgorithm) -> Ordering
fn cmp(&self, other: &SecCSDigestAlgorithm) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SecCSDigestAlgorithm
impl PartialEq for SecCSDigestAlgorithm
Source§impl PartialOrd for SecCSDigestAlgorithm
impl PartialOrd for SecCSDigestAlgorithm
Source§impl RefEncode for SecCSDigestAlgorithm
Available on crate feature objc2
only.
impl RefEncode for SecCSDigestAlgorithm
Available on crate feature
objc2
only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for SecCSDigestAlgorithm
impl Eq for SecCSDigestAlgorithm
impl StructuralPartialEq for SecCSDigestAlgorithm
Auto Trait Implementations§
impl Freeze for SecCSDigestAlgorithm
impl RefUnwindSafe for SecCSDigestAlgorithm
impl Send for SecCSDigestAlgorithm
impl Sync for SecCSDigestAlgorithm
impl Unpin for SecCSDigestAlgorithm
impl UnwindSafe for SecCSDigestAlgorithm
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> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.