Virgil Security Crypto library  2.0.7
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  size_t asn1Write(asn1::VirgilAsn1Writer& asn1Writer, size_t childWrittenBytes = 0) const override;
84 
85  void asn1Read(asn1::VirgilAsn1Reader& asn1Reader) override;
87 };
88 
89 }}}}
90 
91 #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
static size_t defineSize(const virgil::crypto::VirgilByteArray &data)
Read content info size as part of the data.
Root namespace for all Virgil Security libraries.
Definition: VirgilAsn1Compatible.h:46
std::vector< unsigned char > VirgilByteArray
This type represents a sequence of bytes.
Definition: VirgilByteArray.h:53
size_t asn1Write(asn1::VirgilAsn1Writer &asn1Writer, size_t childWrittenBytes=0) const override
Write object state to the writer.
virgil::crypto::VirgilCustomParams customParams
User defiend custom parameters.
Definition: VirgilCMSContentInfo.h:64
Data object that represent CMS structure: ContentInfo.
Definition: VirgilCMSContent.h:51
Data object that represent ASN.1 structure: VirgilCMSContentInfo.
Definition: VirgilCMSContentInfo.h:53
void asn1Read(asn1::VirgilAsn1Reader &asn1Reader) override
Read object state from the reader.