Virgil Security Crypto library  2.4.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
VirgilCMSEnvelopedData.h
1 
37 #ifndef VIRGIL_CRYPTO_VIRGIL_CMS_ENVELOPED_DATA_H
38 #define VIRGIL_CRYPTO_VIRGIL_CMS_ENVELOPED_DATA_H
39 
40 #include <vector>
41 
42 #include "../asn1/VirgilAsn1Compatible.h"
43 
44 #include "VirgilCMSKeyTransRecipient.h"
45 #include "VirgilCMSPasswordRecipient.h"
46 #include "VirgilCMSEncryptedContent.h"
47 
48 
49 namespace virgil { namespace crypto { namespace foundation { namespace cms {
50 
56 public:
61  std::vector<VirgilCMSKeyTransRecipient> keyTransRecipients;
66  std::vector<VirgilCMSPasswordRecipient> passwordRecipients;
72 public:
105  virtual size_t asn1Write(
108  size_t childWrittenBytes = 0) const;
109 
112 private:
113  int defineVersion() const;
114 };
115 
116 }}}}
117 
118 #endif /* VIRGIL_CRYPTO_VIRGIL_CMS_ENVELOPED_DATA_H */
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
std::vector< VirgilCMSPasswordRecipient > passwordRecipients
Set of recipients identified by password.
Definition: VirgilCMSEnvelopedData.h:66
This class provides methods for writing ASN.1 data structure.
Definition: VirgilAsn1Writer.h:54
virtual size_t asn1Write(virgil::crypto::foundation::asn1::VirgilAsn1Writer &asn1Writer, size_t childWrittenBytes=0) const
Write object state to the writer.
std::vector< VirgilCMSKeyTransRecipient > keyTransRecipients
Set of recipients identified by key.
Definition: VirgilCMSEnvelopedData.h:61
virtual void asn1Read(virgil::crypto::foundation::asn1::VirgilAsn1Reader &asn1Reader)
Read object state from the reader.
Data object that represent CMS structure: EncryptedContentInfo.
Definition: VirgilCMSEncryptedContent.h:49
VirgilCMSEncryptedContent encryptedContent
Encrypted content and/or meta information about it.
Definition: VirgilCMSEnvelopedData.h:71
Data object that represent CMS structure: EnvelopedData.
Definition: VirgilCMSEnvelopedData.h:55