Virgil Security Crypto library  1.8.2
VirgilCMSContentInfo.h
1 
37 #ifndef VIRGIL_CRYPTO_VIRGIL_CMS_CONTENT_INFO_H
38 #define VIRGIL_CRYPTO_VIRGIL_CMS_CONTENT_INFO_H
39 
40 #include <map>
41 #include <string>
42 
43 #include <virgil/crypto/VirgilByteArray.h>
44 #include <virgil/crypto/VirgilCustomParams.h>
45 #include <virgil/crypto/foundation/asn1/VirgilAsn1Compatible.h>
46 #include <virgil/crypto/foundation/cms/VirgilCMSContent.h>
47 
48 namespace virgil { namespace crypto { namespace foundation { namespace cms {
49 
54 public:
65 public:
70  static size_t defineSize(const virgil::crypto::VirgilByteArray& data);
82  virtual size_t asn1Write(
85  size_t childWrittenBytes = 0) const;
86 
89 public:
93  virtual ~VirgilCMSContentInfo() throw();
94 };
95 
96 }}}}
97 
98 #endif /* VIRGIL_CRYPTO_VIRGIL_CMS_CONTENT_INFO_H */
Data object that represent ASN.1 structure: VirgilCustomParams.
Definition: VirgilCustomParams.h:51
This class provides methods for reading ASN.1 data structure.
Definition: VirgilAsn1Reader.h:53
VirgilCMSContent cmsContent
CMS content.
Definition: VirgilCMSContentInfo.h:59
This class provides interface that allow to save and restore object state in the ASN.1 structure.
Definition: VirgilAsn1Compatible.h:59
This class provides methods for writing ASN.1 data structure.
Definition: VirgilAsn1Writer.h:54
virtual ~VirgilCMSContentInfo()
Polymorphic destructor.
static size_t defineSize(const virgil::crypto::VirgilByteArray &data)
Read content info size as part of the data.
Definition: VirgilAsn1Compatible.h:46
virgil::crypto::VirgilCustomParams customParams
User defiend custom parameters.
Definition: VirgilCMSContentInfo.h:64
virtual void asn1Read(virgil::crypto::foundation::asn1::VirgilAsn1Reader &asn1Reader)
Read object state from the reader.
Data object that represent CMS structure: ContentInfo.
Definition: VirgilCMSContent.h:64
Data object that represent ASN.1 structure: VirgilCMSContentInfo.
Definition: VirgilCMSContentInfo.h:53
virtual size_t asn1Write(virgil::crypto::foundation::asn1::VirgilAsn1Writer &asn1Writer, size_t childWrittenBytes=0) const
Write object state to the writer.