apple_codesign::stapling

Function xar_notarization_trailer

Source
pub fn xar_notarization_trailer(
    ticket_data: &[u8],
) -> Result<Vec<u8>, AppleCodesignError>
Expand description

Obtain the notarization trailer data for a XAR archive.

The trailer data consists of a XarNotarizationTrailer of type Terminator to denote the end of XAR content followed by the raw ticket data followed by a XarNotarizationTrailer with type Ticket. Essentially, a reader can look for a ticket trailer at the end of the file then quickly seek to the beginning of ticket data.