8 #include <botan/cms_dec.h> 9 #include <botan/ber_dec.h> 10 #include <botan/asn1_int.h> 11 #include <botan/oids.h> 12 #include <botan/pem.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]),
119 void CMS_Decoder::read_econtent(
BER_Decoder& decoder)
122 econtent_info.
decode(next_type);
Content_Type layer_type() const
BER_Decoder & decode(bool &)
bool maybe_BER(DataSource &source)
BER_Decoder start_cons(ASN1_Tag, ASN1_Tag=UNIVERSAL)
std::string lookup(const OID &oid)
std::string layer_info() const
std::string get_data() const
Status layer_status() const
void add_key(Private_Key *)
bool matches(DataSource &source, const std::string &extra, size_t search_range)
CMS_Decoder(DataSource &, const X509_Store &, Private_Key *=0)
SecureVector< byte > decode_check_label(DataSource &source, const std::string &label_want)