[]Struct openssl::cms::CmsContentInfo

pub struct CmsContentInfo(_);

High level CMS wrapper

CMS supports nesting various types of data, including signatures, certificates, encrypted data, smime messages (encrypted email), and data digest. The ContentInfo content type is the encapsulation of all those content types. RFC 5652 describes CMS and OpenSSL follows this RFC's implmentation.

Methods

impl CmsContentInfo
[src]

Parses a smime formatted vec of bytes into a CmsContentInfo.

OpenSSL documentation at SMIME_read_CMS

Given a signing cert signcert, private key pkey, a certificate stack certs, data data and flags flags, create a CmsContentInfo struct.

All arguments are optional.

OpenSSL documentation at CMS_sign

Methods from Deref<Target = CmsContentInfoRef>

Given the sender's private key, pkey and the recipient's certificiate, cert, decrypt the data in self.

OpenSSL documentation at CMS_decrypt

Serializes this CmsContentInfo using DER.

OpenSSL documentation at i2d_CMS_ContentInfo

Trait Implementations

impl Sync for CmsContentInfo
[src]

impl AsRef<CmsContentInfoRef> for CmsContentInfo

Performs the conversion.

impl Send for CmsContentInfo
[src]

impl Drop for CmsContentInfo

Executes the destructor for this type. Read more

impl Deref for CmsContentInfo

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for CmsContentInfo

Mutably dereferences the value.

impl Borrow<CmsContentInfoRef> for CmsContentInfo

Immutably borrows from an owned value. Read more

impl ForeignType for CmsContentInfo

The raw C type.

The type representing a reference to this type.

Constructs an instance of this type from its raw type.

Returns a raw pointer to the wrapped value.

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more