Struct pkcs7::enveloped_data_content::EncryptedContentInfo
source · [−]pub struct EncryptedContentInfo<'a> {
pub content_type: ContentType,
pub content_encryption_algorithm: AlgorithmIdentifier<'a>,
pub encrypted_content: Option<&'a [u8]>,
}Expand description
Encrypted content information RFC 5652 § 6
EncryptedContentInfo ::= SEQUENCE {
contentType ContentType,
contentEncryptionAlgorithm
ContentEncryptionAlgorithmIdentifier,
encryptedContent
[0] IMPLICIT EncryptedContent OPTIONAL }
ContentEncryptionAlgorithmIdentifier ::=
AlgorithmIdentifier
EncryptedContent ::= OCTET STRINGThe fields of type EncryptedContentInfo have the following meanings:
content_typeindicates the type of content.content_encryption_algorithmidentifies the content-encryption algorithm (and any associated parameters) under which the content is encrypted. This algorithm is the same for all recipients.encrypted_contentis the result of encrypting the content. The field is optional, and if the field is not present, its intended value must be supplied by other means.
Fields
content_type: ContentTypeindicates the type of content.
content_encryption_algorithm: AlgorithmIdentifier<'a>identifies the content-encryption algorithm (and any associated parameters) under which the content is encrypted.
encrypted_content: Option<&'a [u8]>the encrypted contents; when not present, its intended value must be supplied by other means.
Trait Implementations
sourceimpl<'a> Clone for EncryptedContentInfo<'a>
impl<'a> Clone for EncryptedContentInfo<'a>
sourcefn clone(&self) -> EncryptedContentInfo<'a>
fn clone(&self) -> EncryptedContentInfo<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for EncryptedContentInfo<'a>
impl<'a> Debug for EncryptedContentInfo<'a>
sourceimpl<'a> Decodable<'a> for EncryptedContentInfo<'a>
impl<'a> Decodable<'a> for EncryptedContentInfo<'a>
sourceimpl<'a> PartialEq<EncryptedContentInfo<'a>> for EncryptedContentInfo<'a>
impl<'a> PartialEq<EncryptedContentInfo<'a>> for EncryptedContentInfo<'a>
sourcefn eq(&self, other: &EncryptedContentInfo<'a>) -> bool
fn eq(&self, other: &EncryptedContentInfo<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &EncryptedContentInfo<'a>) -> bool
fn ne(&self, other: &EncryptedContentInfo<'a>) -> bool
This method tests for !=.
sourceimpl<'a> Sequence<'a> for EncryptedContentInfo<'a>
impl<'a> Sequence<'a> for EncryptedContentInfo<'a>
impl<'a> Copy for EncryptedContentInfo<'a>
impl<'a> Eq for EncryptedContentInfo<'a>
impl<'a> StructuralEq for EncryptedContentInfo<'a>
impl<'a> StructuralPartialEq for EncryptedContentInfo<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for EncryptedContentInfo<'a>
impl<'a> Send for EncryptedContentInfo<'a>
impl<'a> Sync for EncryptedContentInfo<'a>
impl<'a> Unpin for EncryptedContentInfo<'a>
impl<'a> UnwindSafe for EncryptedContentInfo<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> Choice<'a> for T where
T: Decodable<'a> + FixedTag,
impl<'a, T> Choice<'a> for T where
T: Decodable<'a> + FixedTag,
sourcefn can_decode(tag: Tag) -> bool
fn can_decode(tag: Tag) -> bool
Is the provided Tag decodable as a variant of this CHOICE?