9 #include <botan/signed_obj.h>
10 #include <botan/pubkey.h>
11 #include <botan/oids.h>
53 std::vector<std::string> sig_info =
56 if(sig_info.size() != 2 || sig_info[0] != pub_key.
algo_name())
61 std::string padding = sig_info[1];
86 const std::string what = e.what();
91 const std::string what = e.what();
virtual SecureVector< byte > tbs_data() const =0
std::string read_all_as_string(message_id=DEFAULT_MESSAGE)
AlgorithmIdentifier sig_algo
virtual void encode(Pipe &pipe, X509_Encoding encoding=PEM) const =0
std::vector< std::string > split_on(const std::string &str, char delim)
std::string PEM_encode() const
virtual std::string algo_name() const =0
std::invalid_argument Invalid_Argument
SecureVector< byte > BER_encode() const
SecureVector< byte > read_all(message_id msg=DEFAULT_MESSAGE)
std::string lookup(const OID &oid)
virtual size_t message_parts() const
bool verify_message(const byte msg[], size_t msg_length, const byte sig[], size_t sig_length)
std::string PEM_label_pref
bool check_signature(class Public_Key &key, const MemoryRegion< byte > &sig) const
AlgorithmIdentifier signature_algorithm() const