37 #ifndef VIRGIL_CRYPTO_VIRGIL_ASN1_READER_H
38 #define VIRGIL_CRYPTO_VIRGIL_ASN1_READER_H
43 #include <virgil/crypto/VirgilByteArray.h>
45 namespace virgil {
namespace crypto {
namespace foundation {
namespace asn1 {
78 void reset(
const virgil::crypto::VirgilByteArray& data);
112 virgil::crypto::VirgilByteArray
readData();
161 const unsigned char* end_;
162 virgil::crypto::VirgilByteArray data_;
This class provides methods for reading ASN.1 data structure.
Definition: VirgilAsn1Reader.h:53
bool readBool()
Read ASN.1 type: BOOLEAN.
void reset(const virgil::crypto::VirgilByteArray &data)
Reset all internal states and prepare to new ASN.1 reading operations.
size_t readSequence()
Read ASN.1 type: SEQUENCE.
void readNull()
Read ASN.1 type: NULL.
virgil::crypto::VirgilByteArray readData()
Read preformatted ASN.1 structure.
virgil::crypto::VirgilByteArray readOctetString()
Read ASN.1 type: OCTET STRING.
Definition: VirgilAsn1Compatible.h:46
VirgilAsn1Reader()
Initialize internal state.
std::string readOID()
Read ASN.1 type: OID.
int readInteger()
Read ASN.1 type: INTEGER.
~VirgilAsn1Reader()
Dispose internal resources.
size_t readSet()
Read ASN.1 type: SET.
size_t readContextTag(unsigned char tag)
Read ASN.1 type: TAG.
virgil::crypto::VirgilByteArray readUTF8String()
Read ASN.1 type: UTF8String.