8 #ifndef BOTAN_X509_OBJECT_H__
9 #define BOTAN_X509_OBJECT_H__
11 #include <botan/asn1_obj.h>
12 #include <botan/x509_key.h>
13 #include <botan/rng.h>
29 std::vector<uint8_t> tbs_data()
const;
34 std::vector<uint8_t> signature()
const;
44 std::string hash_used_for_signature()
const;
54 static std::vector<uint8_t> make_signed(
class PK_Signer* signer,
64 bool check_signature(
const Public_Key& key)
const;
72 bool check_signature(
const Public_Key* key)
const;
78 void encode_into(
class DER_Encoder& to)
const override;
101 X509_Object(
const std::vector<uint8_t>& vec,
const std::string& labels);
103 #if defined(BOTAN_TARGET_OS_HAS_FILESYSTEM)
104 X509_Object(
const std::string& file,
const std::string& pem_labels);
112 virtual void force_decode() = 0;
115 std::vector<std::string> m_PEM_labels_allowed;
116 std::string m_PEM_label_pref;
AlgorithmIdentifier m_sig_algo
secure_vector< uint8_t > BER_encode(const Private_Key &key)
std::string PEM_encode(const Private_Key &key)
std::vector< T, secure_allocator< T >> secure_vector
std::vector< uint8_t > m_tbs_bits