Struct rpm::SignatureHeaderBuilder [−][src]
pub struct SignatureHeaderBuilder<T> where
T: ConstructionStage, { /* fields omitted */ }
Expand description
base signature header builder
T describes the stage and can be one of Empty
, WithDigest
, WithSignature
Implementations
Construct the complete signature header.
pub fn add_digest(
self,
digest_header_only: &str,
digest_header_and_archive: &[u8]
) -> SignatureHeaderBuilder<WithDigest>
pub fn add_digest(
self,
digest_header_only: &str,
digest_header_and_archive: &[u8]
) -> SignatureHeaderBuilder<WithDigest>
add a digest over the header and a signature accross header and source excluding the static lead
pub fn add_signature(
self,
rsa_sig_header_only: &[u8],
rsa_sig_header_and_archive: &[u8]
) -> SignatureHeaderBuilder<WithSignature>
pub fn add_signature(
self,
rsa_sig_header_only: &[u8],
rsa_sig_header_and_archive: &[u8]
) -> SignatureHeaderBuilder<WithSignature>
add a signature over the header and a signature accross header and source excluding the static lead