37 #ifndef VIRGIL_CRYPTO_VIRGIL_CMS_CONTENT_H
38 #define VIRGIL_CRYPTO_VIRGIL_CMS_CONTENT_H
42 #include <virgil/crypto/VirgilByteArray.h>
43 #include <virgil/crypto/foundation/asn1/VirgilAsn1Compatible.h>
45 namespace virgil {
namespace crypto {
namespace foundation {
namespace cms {
52 VirgilCMSContentType_Data = 0,
53 VirgilCMSContentType_SignedData,
54 VirgilCMSContentType_EnvelopedData,
55 VirgilCMSContentType_DigestedData,
56 VirgilCMSContentType_EncryptedData,
57 VirgilCMSContentType_AuthenticatedData
58 } VirgilCMSContentType;
92 size_t childWrittenBytes = 0)
const;
106 static std::
string contentTypeToOID(VirgilCMSContentType contentType);
111 static VirgilCMSContentType oidToContentType(const std::
string& oid);
This class provides methods for reading ASN.1 data structure.
Definition: VirgilAsn1Reader.h:53
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
Definition: VirgilAsn1Compatible.h:46
virtual ~VirgilCMSContent()
Polymorphic destructor.
virgil::crypto::VirgilByteArray content
Associated data.
Definition: VirgilCMSContent.h:75
VirgilCMSContentType contentType
Indicates the type of the associated content.
Definition: VirgilCMSContent.h:70
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
virtual size_t asn1Write(virgil::crypto::foundation::asn1::VirgilAsn1Writer &asn1Writer, size_t childWrittenBytes=0) const
Write object state to the writer.