8 #ifndef BOTAN_DL_PARAM_H__
9 #define BOTAN_DL_PARAM_H__
11 #include <botan/bigint.h>
12 #include <botan/data_src.h>
28 const BigInt& get_p()
const;
34 const BigInt& get_q()
const;
40 const BigInt& get_g()
const;
50 DSA_PARAMETERS = ANSI_X9_57,
51 DH_PARAMETERS = ANSI_X9_42,
52 ANSI_X9_42_DH_PARAMETERS = ANSI_X9_42,
53 PKCS3_DH_PARAMETERS = PKCS_3
81 std::vector<uint8_t> DER_encode(Format format)
const;
88 void BER_decode(
const std::vector<uint8_t>& ber,
95 void PEM_decode(
const std::string& pem);
127 size_t pbits,
size_t qbits = 0);
137 const std::vector<uint8_t>& seed,
138 size_t pbits = 1024,
size_t qbits = 0);
158 static std::string PEM_for_named_group(
const std::string& name);
162 void init_check()
const;
std::string PEM_encode(const Private_Key &key)