Virgil Security Crypto library  2.6.3
Public Member Functions | Protected Member Functions | List of all members
virgil::crypto::foundation::asn1::VirgilAsn1Compatible Class Referenceabstract

This class provides interface that allow to save and restore object state in the ASN.1 structure. More...

#include <VirgilAsn1Compatible.h>

Inheritance diagram for virgil::crypto::foundation::asn1::VirgilAsn1Compatible:
virgil::crypto::foundation::cms::VirgilCMSContent virgil::crypto::foundation::cms::VirgilCMSContentInfo virgil::crypto::foundation::cms::VirgilCMSEncryptedContent virgil::crypto::foundation::cms::VirgilCMSEnvelopedData virgil::crypto::foundation::cms::VirgilCMSKeyTransRecipient virgil::crypto::foundation::cms::VirgilCMSPasswordRecipient virgil::crypto::foundation::VirgilAsymmetricCipher virgil::crypto::foundation::VirgilHash virgil::crypto::foundation::VirgilKDF virgil::crypto::foundation::VirgilPBE virgil::crypto::foundation::VirgilPBKDF virgil::crypto::foundation::VirgilSymmetricCipher virgil::crypto::VirgilContentInfo virgil::crypto::VirgilCustomParams

Public Member Functions

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.
 
virtual size_t asn1Write (VirgilAsn1Writer &asn1Writer, size_t childWrittenBytes=0) const =0
 Write object state to the writer. More...
 
virtual void asn1Read (VirgilAsn1Reader &asn1Reader)=0
 Read object state from the reader. More...
 

Protected Member Functions

virtual void checkRequiredField (const VirgilByteArray &param) const
 If given parameter is empty exception will be thrown. More...
 

Detailed Description

This class provides interface that allow to save and restore object state in the ASN.1 structure.

Member Function Documentation

virtual void virgil::crypto::foundation::asn1::VirgilAsn1Compatible::asn1Read ( VirgilAsn1Reader asn1Reader)
pure virtual
virtual size_t virgil::crypto::foundation::asn1::VirgilAsn1Compatible::asn1Write ( VirgilAsn1Writer asn1Writer,
size_t  childWrittenBytes = 0 
) const
pure virtual
virtual void virgil::crypto::foundation::asn1::VirgilAsn1Compatible::checkRequiredField ( const VirgilByteArray param) const
protectedvirtual

If given parameter is empty exception will be thrown.

Exceptions
virgil::crypto::VirgilCryptoException.

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