[]Struct openssl::pkcs7::Pkcs7

pub struct Pkcs7(_);

A PKCS#7 structure.

Contains signed and/or encrypted data.

Methods

impl Pkcs7
[src]

Deserializes a PEM-encoded PKCS#7 signature

The input should have a header of -----BEGIN PKCS7-----.

This corresponds to PEM_read_bio_PKCS7.

Parses a message in S/MIME format.

Returns the loaded signature, along with the cleartext message (if available).

This corresponds to SMIME_read_PKCS7.

Creates and returns a PKCS#7 envelopedData structure.

certs is a list of recipient certificates. input is the content to be encrypted. cipher is the symmetric cipher to use. flags is an optional set of flags.

This corresponds to PKCS7_encrypt.

Creates and returns a PKCS#7 signedData structure.

signcert is the certificate to sign with, pkey is the corresponding private key. certs is an optional additional set of certificates to include in the PKCS#7 structure (for example any intermediate CAs in the chain).

This corresponds to PKCS7_sign.

Methods from Deref<Target = Pkcs7Ref>

Converts PKCS#7 structure to S/MIME format

This corresponds to SMIME_write_PKCS7.

Serializes the data into a PEM-encoded PKCS#7 structure.

The output will have a header of -----BEGIN PKCS7-----.

This corresponds to PEM_write_bio_PKCS7.

Decrypts data using the provided private key.

pkey is the recipient's private key, and cert is the recipient's certificate.

Returns the decrypted message.

This corresponds to PKCS7_decrypt.

Verifies the PKCS#7 signedData structure contained by &self.

certs is a set of certificates in which to search for the signer's certificate. store is a trusted certificate store (used for chain verification). indata is the signed data if the content is not present in &self. The content is written to out if it is not None.

This corresponds to PKCS7_verify.

Trait Implementations

impl Drop for Pkcs7

Executes the destructor for this type. Read more

impl Sync for Pkcs7
[src]

impl AsRef<Pkcs7Ref> for Pkcs7

Performs the conversion.

impl Send for Pkcs7
[src]

impl Deref for Pkcs7

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for Pkcs7

Mutably dereferences the value.

impl Borrow<Pkcs7Ref> for Pkcs7

Immutably borrows from an owned value. Read more

impl ForeignType for Pkcs7

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> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<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