Virgil Security Crypto library  2.6.3
Public Attributes | List of all members
virgil::crypto::foundation::cms::VirgilCMSEnvelopedData Class Reference

Data object that represent CMS structure: EnvelopedData. More...

#include <VirgilCMSEnvelopedData.h>

Inheritance diagram for virgil::crypto::foundation::cms::VirgilCMSEnvelopedData:
virgil::crypto::foundation::asn1::VirgilAsn1Compatible

Public Member Functions

VirgilAsn1Compatible implementation
Marshalling format:
EnvelopedData ::= SEQUENCE {
version CMSVersion,
originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL, -- not used
recipientInfos RecipientInfos,
encryptedContentInfo EncryptedContentInfo,
unprotectedAttrs [1] IMPLICIT UnprotectedAttributes OPTIONAL -- not used
}
CMSVersion ::= INTEGER { v0(0), v1(1), v2(2), v3(3), v4(4), v5(5) }
OriginatorInfo ::= SEQUENCE {
certs [0] IMPLICIT CertificateSet OPTIONAL,
crls [1] IMPLICIT RevocationInfoChoices OPTIONAL
}
RecipientInfos ::= SET SIZE (1..MAX) OF RecipientInfo
EncryptedContentInfo ::= SEQUENCE {...}
RecipientInfo ::= CHOICE {
ktri KeyTransRecipientInfo,
kari [1] KeyAgreeRecipientInfo, -- not supported
kekri [2] KEKRecipientInfo, -- not supported
pwri [3] PasswordRecipientInfo,
ori [4] OtherRecipientInfo -- not supported
}
virtual size_t asn1Write (virgil::crypto::foundation::asn1::VirgilAsn1Writer &asn1Writer, size_t childWrittenBytes=0) const
 Write object state to the writer. More...
 
virtual void asn1Read (virgil::crypto::foundation::asn1::VirgilAsn1Reader &asn1Reader)
 Read object state from the reader. More...
 
- Public Member Functions inherited from virgil::crypto::foundation::asn1::VirgilAsn1Compatible
virgil::crypto::VirgilByteArray toAsn1 () const
 Save object state to the ASN.1 structure.
 
void fromAsn1 (const virgil::crypto::VirgilByteArray &asn1)
 Restore object state from the ASN.1 structure.
 
virtual ~VirgilAsn1Compatible () noexcept
 Polymorphic destructor.
 

Public Attributes

std::vector< VirgilCMSKeyTransRecipientkeyTransRecipients
 Set of recipients identified by key.
 
std::vector< VirgilCMSPasswordRecipientpasswordRecipients
 Set of recipients identified by password.
 
VirgilCMSEncryptedContent encryptedContent
 Encrypted content and/or meta information about it.
 

Additional Inherited Members

- Protected Member Functions inherited from virgil::crypto::foundation::asn1::VirgilAsn1Compatible
virtual void checkRequiredField (const VirgilByteArray &param) const
 If given parameter is empty exception will be thrown. More...
 

Detailed Description

Data object that represent CMS structure: EnvelopedData.

See also
RFC 5652 section 6.1.

Member Function Documentation

virtual void virgil::crypto::foundation::cms::VirgilCMSEnvelopedData::asn1Read ( virgil::crypto::foundation::asn1::VirgilAsn1Reader asn1Reader)
virtual

Read object state from the reader.

Parameters
asn1Readerreader payloaded with ASN.1 to be read.

Implements virgil::crypto::foundation::asn1::VirgilAsn1Compatible.

virtual size_t virgil::crypto::foundation::cms::VirgilCMSEnvelopedData::asn1Write ( virgil::crypto::foundation::asn1::VirgilAsn1Writer asn1Writer,
size_t  childWrittenBytes = 0 
) const
virtual

Write object state to the writer.

Parameters
asn1Writerwriter that should be payloaded by subclasses.
childWrittenBytescount of bytes that was written by subclasses.
Returns
Writen bytes count.

Implements virgil::crypto::foundation::asn1::VirgilAsn1Compatible.


The documentation for this class was generated from the following file: