Enum apple_codesign::BlobData
source · [−]pub enum BlobData<'a> {
Requirement(Box<RequirementBlob<'a>>),
RequirementSet(Box<RequirementSetBlob<'a>>),
CodeDirectory(Box<CodeDirectoryBlob<'a>>),
EmbeddedSignature(Box<EmbeddedSignatureBlob<'a>>),
EmbeddedSignatureOld(Box<EmbeddedSignatureOldBlob<'a>>),
Entitlements(Box<EntitlementsBlob<'a>>),
DetachedSignature(Box<DetachedSignatureBlob<'a>>),
BlobWrapper(Box<BlobWrapperBlob<'a>>),
Other(Box<OtherBlob<'a>>),
}
Expand description
Represents a single, parsed Blob entry/slot.
Each variant corresponds to a CodeSigningMagic blob type.
Variants
Requirement(Box<RequirementBlob<'a>>)
RequirementSet(Box<RequirementSetBlob<'a>>)
CodeDirectory(Box<CodeDirectoryBlob<'a>>)
EmbeddedSignature(Box<EmbeddedSignatureBlob<'a>>)
EmbeddedSignatureOld(Box<EmbeddedSignatureOldBlob<'a>>)
Entitlements(Box<EntitlementsBlob<'a>>)
DetachedSignature(Box<DetachedSignatureBlob<'a>>)
BlobWrapper(Box<BlobWrapperBlob<'a>>)
Other(Box<OtherBlob<'a>>)
Trait Implementations
sourceimpl<'a> Blob<'a> for BlobData<'a>
impl<'a> Blob<'a> for BlobData<'a>
sourcefn from_blob_bytes(data: &'a [u8]) -> Result<Self, AppleCodesignError>
fn from_blob_bytes(data: &'a [u8]) -> Result<Self, AppleCodesignError>
Parse blob data by reading its magic and feeding into magic-specific parser.
sourcefn serialize_payload(&self) -> Result<Vec<u8>, AppleCodesignError>
fn serialize_payload(&self) -> Result<Vec<u8>, AppleCodesignError>
Serialize the payload of this blob to bytes. Read more
sourcefn to_blob_bytes(&self) -> Result<Vec<u8>, AppleCodesignError>
fn to_blob_bytes(&self) -> Result<Vec<u8>, AppleCodesignError>
Serialize this blob to bytes. Read more
sourcefn digest_with(
&self,
hash_type: DigestType
) -> Result<Vec<u8>, AppleCodesignError>
fn digest_with(
&self,
hash_type: DigestType
) -> Result<Vec<u8>, AppleCodesignError>
Obtain the digest of the blob using the specified hasher. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for BlobData<'a>
impl<'a> Send for BlobData<'a>
impl<'a> Sync for BlobData<'a>
impl<'a> Unpin for BlobData<'a>
impl<'a> UnwindSafe for BlobData<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more