aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/dl_algo/dl_algo.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-20 20:11:59 -0400
committerJack Lloyd <[email protected]>2016-10-20 20:11:59 -0400
commitbad4cafce3c592cddbbecd7c99b5f99a53815ff8 (patch)
tree50eeffe155deb4e873fff35b09a3acb20cc00cd9 /src/lib/pubkey/dl_algo/dl_algo.h
parentd1817c9960f619b130388a570ed09ccbed568e2e (diff)
parentd2fd41d1ea1ac6211705ba88de6828693a10c0b4 (diff)
Merge GH #670 Improve Doxygen coverage
Diffstat (limited to 'src/lib/pubkey/dl_algo/dl_algo.h')
-rw-r--r--src/lib/pubkey/dl_algo/dl_algo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/pubkey/dl_algo/dl_algo.h b/src/lib/pubkey/dl_algo/dl_algo.h
index 705cce8b3..78816935e 100644
--- a/src/lib/pubkey/dl_algo/dl_algo.h
+++ b/src/lib/pubkey/dl_algo/dl_algo.h
@@ -62,6 +62,12 @@ class BOTAN_DLL DL_Scheme_PublicKey : public virtual Public_Key
size_t estimated_strength() const override;
+ /**
+ * Create a public key.
+ * @param alg_id the X.509 algorithm identifier
+ * @param key_bits X.509 subject public key info structure
+ * @param group_format the underlying groups encoding format
+ */
DL_Scheme_PublicKey(const AlgorithmIdentifier& alg_id,
const secure_vector<byte>& key_bits,
DL_Group::Format group_format);
@@ -97,6 +103,12 @@ class BOTAN_DLL DL_Scheme_PrivateKey : public virtual DL_Scheme_PublicKey,
secure_vector<byte> pkcs8_private_key() const override;
+ /**
+ * Create a private key.
+ * @param alg_id the X.509 algorithm identifier
+ * @param key_bits DER encoded private key bits
+ * @param group_format the underlying groups encoding format
+ */
DL_Scheme_PrivateKey(const AlgorithmIdentifier& alg_id,
const secure_vector<byte>& key_bits,
DL_Group::Format group_format);