Struct cryptographic_message_syntax::SignedDataBuilder [−][src]
pub struct SignedDataBuilder<'a> { /* fields omitted */ }
Expand description
Entity for incrementally deriving a SignedData primitive.
Use this type for generating an RFC 5652 payload for signed data.
Implementations
Define the content to sign.
This content will be embedded in the generated payload.
Add a signer.
The signer is the thing generating the cryptographic signature over data to be signed.
Add a certificate defined by our crate’s Certificate type.
Add multiple certificates to the certificates chain.
Force the OID for the ContentInfo.contentType
field.
Construct a DER-encoded ASN.1 document containing a SignedData
object.
RFC 5652 says SignedData
is BER encoded. However, DER is a stricter subset
of BER. DER encodings are valid BER. So producing DER encoded data is perfectly
valid. We choose to go with the more well-defined encoding format.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for SignedDataBuilder<'a>
impl<'a> Send for SignedDataBuilder<'a>
impl<'a> Sync for SignedDataBuilder<'a>
impl<'a> Unpin for SignedDataBuilder<'a>
impl<'a> UnwindSafe for SignedDataBuilder<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more