8#ifndef BOTAN_BER_DECODER_H__
9#define BOTAN_BER_DECODER_H__
11#include <botan/asn1_oid.h>
12#include <botan/data_src.h>
55 const T& default_value = T());
59 bool clear_out =
true);
63 const std::string& error_msg)
68 if(actual != expected)
98 const T& default_value)
109 decode(out, type_tag, class_tag);
134 vec.push_back(value);
BER_Object get_next_object()
BER_Decoder start_cons(ASN1_Tag, ASN1_Tag=UNIVERSAL)
BER_Decoder & raw_bytes(MemoryRegion< byte > &)
BER_Decoder & decode_and_check(const T &expected, const std::string &error_msg)
BER_Decoder & decode(bool &)
BER_Decoder & decode_optional(T &out, ASN1_Tag type_tag, ASN1_Tag class_tag, const T &default_value=T())
BER_Decoder & verify_end()
BER_Decoder & decode_list(std::vector< T > &out, bool clear_out=true)
BER_Decoder & decode_octet_string_bigint(class BigInt &)
BER_Decoder & discard_remaining()
BER_Decoder & decode_null()
void push_back(const BER_Object &)
BER_Decoder(DataSource &)
SecureVector< byte > value