8#include <botan/cms_dec.h>
9#include <botan/ber_dec.h>
10#include <botan/asn1_int.h>
11#include <botan/oids.h>
66 for(
u32bit j = 0; j != keys.size(); j++)
67 if(keys[j]->key_id() == key->key_id())
88 throw Invalid_State(
"CMS: Cannot retrieve data from non-DATA layer");
90 return std::string(
reinterpret_cast<const char*
>(&data[0]),
119void CMS_Decoder::read_econtent(
BER_Decoder& decoder)
122 econtent_info.
decode(next_type);
BER_Decoder start_cons(ASN1_Tag, ASN1_Tag=UNIVERSAL)
BER_Decoder & decode(bool &)
CMS_Decoder(DataSource &, const X509_Store &, Private_Key *=0)
Content_Type layer_type() const
void add_key(Private_Key *)
std::string get_data() const
std::string layer_info() const
Status layer_status() const
bool maybe_BER(DataSource &source)
std::string lookup(const OID &oid)
SecureVector< byte > decode_check_label(DataSource &source, const std::string &label_want)
bool matches(DataSource &source, const std::string &extra, size_t search_range)
Invalid_State(const std::string &err)