Virgil Security Crypto library  2.6.3
Static Public Member Functions | Public Attributes | List of all members
virgil::crypto::foundation::cms::VirgilCMSContentInfo Class Reference

Data object that represent ASN.1 structure: VirgilCMSContentInfo. More...

#include <VirgilCMSContentInfo.h>

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

Public Member Functions

VirgilAsn1Compatible implementation
Marshalling format:
VirgilCMSContentInfo ::= SEQUENCE {
version ::= INTEGER { v0(0) },
cmsContent ContentInfo, -- Imports from RFC 5652
customParams [0] IMPLICIT VirgilCustomParams OPTIONAL
}
size_t asn1Write (asn1::VirgilAsn1Writer &asn1Writer, size_t childWrittenBytes=0) const override
 Write object state to the writer. More...
 
void asn1Read (asn1::VirgilAsn1Reader &asn1Reader) override
 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.
 

Static Public Member Functions

static size_t defineSize (const virgil::crypto::VirgilByteArray &data)
 Read content info size as part of the data. More...
 

Public Attributes

VirgilCMSContent cmsContent
 CMS content.
 
virgil::crypto::VirgilCustomParams customParams
 User defiend custom parameters.
 

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 ASN.1 structure: VirgilCMSContentInfo.

Member Function Documentation

void virgil::crypto::foundation::cms::VirgilCMSContentInfo::asn1Read ( asn1::VirgilAsn1Reader asn1Reader)
overridevirtual

Read object state from the reader.

Parameters
asn1Readerreader payloaded with ASN.1 to be read.

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

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

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.

static size_t virgil::crypto::foundation::cms::VirgilCMSContentInfo::defineSize ( const virgil::crypto::VirgilByteArray data)
static

Read content info size as part of the data.

Returns
Size of the content info if it is exist as part of the data, 0 - otherwise.

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