Virgil Security Crypto library
1.8.2
|
This class provides methods for reading ASN.1 data structure. More...
#include <VirgilAsn1Reader.h>
Public Member Functions | |
VirgilAsn1Reader () | |
Initialize internal state. | |
VirgilAsn1Reader (const virgil::crypto::VirgilByteArray &data) | |
Initialize internal state with given ASN.1 structure. More... | |
~VirgilAsn1Reader () throw () | |
Dispose internal resources. | |
Configure reading | |
void | reset (const virgil::crypto::VirgilByteArray &data) |
Reset all internal states and prepare to new ASN.1 reading operations. More... | |
Read Simple ASN.1 Types | |
int | readInteger () |
Read ASN.1 type: INTEGER. | |
bool | readBool () |
Read ASN.1 type: BOOLEAN. | |
void | readNull () |
Read ASN.1 type: NULL. | |
virgil::crypto::VirgilByteArray | readOctetString () |
Read ASN.1 type: OCTET STRING. | |
virgil::crypto::VirgilByteArray | readUTF8String () |
Read ASN.1 type: UTF8String. | |
virgil::crypto::VirgilByteArray | readData () |
Read preformatted ASN.1 structure. | |
size_t | readContextTag (unsigned char tag) |
Read ASN.1 type: TAG. More... | |
std::string | readOID () |
Read ASN.1 type: OID. More... | |
Read Structured ASN.1 Types | |
size_t | readSequence () |
Read ASN.1 type: SEQUENCE. More... | |
size_t | readSet () |
Read ASN.1 type: SET. More... | |
This class provides methods for reading ASN.1 data structure.
|
explicit |
Initialize internal state with given ASN.1 structure.
size_t virgil::crypto::foundation::asn1::VirgilAsn1Reader::readContextTag | ( | unsigned char | tag | ) |
Read ASN.1 type: TAG.
std::string virgil::crypto::foundation::asn1::VirgilAsn1Reader::readOID | ( | ) |
Read ASN.1 type: OID.
size_t virgil::crypto::foundation::asn1::VirgilAsn1Reader::readSequence | ( | ) |
Read ASN.1 type: SEQUENCE.
size_t virgil::crypto::foundation::asn1::VirgilAsn1Reader::readSet | ( | ) |
Read ASN.1 type: SET.
void virgil::crypto::foundation::asn1::VirgilAsn1Reader::reset | ( | const virgil::crypto::VirgilByteArray & | data | ) |
Reset all internal states and prepare to new ASN.1 reading operations.
data | - ASN.1 structure to be read. |