pub struct SignatureHeaderBuilder<T>where
T: ConstructionStage,{ /* private fields */ }Expand description
base signature header builder
T describes the stage and can be one of Empty, WithDigest, WithSignature
Implementations§
Source§impl<T> SignatureHeaderBuilder<T>where
T: ConstructionStage,
impl<T> SignatureHeaderBuilder<T>where
T: ConstructionStage,
Sourcepub fn build(self, signature_size: i32) -> Header<IndexSignatureTag>
pub fn build(self, signature_size: i32) -> Header<IndexSignatureTag>
Construct the complete signature header.
Source§impl SignatureHeaderBuilder<Empty>
impl SignatureHeaderBuilder<Empty>
Sourcepub 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
Source§impl SignatureHeaderBuilder<WithDigest>
impl SignatureHeaderBuilder<WithDigest>
Sourcepub 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
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SignatureHeaderBuilder<T>
impl<T> RefUnwindSafe for SignatureHeaderBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for SignatureHeaderBuilder<T>where
T: Send,
impl<T> Sync for SignatureHeaderBuilder<T>where
T: Sync,
impl<T> Unpin for SignatureHeaderBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for SignatureHeaderBuilder<T>where
T: UnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more