aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pubkey/pk_algs.cpp10
-rw-r--r--src/pubkey/pk_algs.h10
-rw-r--r--src/pubkey/workfactor.h8
3 files changed, 15 insertions, 13 deletions
diff --git a/src/pubkey/pk_algs.cpp b/src/pubkey/pk_algs.cpp
index 18e08f82e..e500cfc2e 100644
--- a/src/pubkey/pk_algs.cpp
+++ b/src/pubkey/pk_algs.cpp
@@ -42,8 +42,8 @@
namespace Botan {
-BOTAN_DLL Public_Key* make_public_key(const AlgorithmIdentifier& alg_id,
- const MemoryRegion<byte>& key_bits)
+Public_Key* make_public_key(const AlgorithmIdentifier& alg_id,
+ const MemoryRegion<byte>& key_bits)
{
const std::string alg_name = OIDS::lookup(alg_id.oid);
if(alg_name == "")
@@ -92,9 +92,9 @@ BOTAN_DLL Public_Key* make_public_key(const AlgorithmIdentifier& alg_id,
return 0;
}
-BOTAN_DLL Private_Key* make_private_key(const AlgorithmIdentifier& alg_id,
- const MemoryRegion<byte>& key_bits,
- RandomNumberGenerator& rng)
+Private_Key* make_private_key(const AlgorithmIdentifier& alg_id,
+ const MemoryRegion<byte>& key_bits,
+ RandomNumberGenerator& rng)
{
const std::string alg_name = OIDS::lookup(alg_id.oid);
if(alg_name == "")
diff --git a/src/pubkey/pk_algs.h b/src/pubkey/pk_algs.h
index 3fbaed234..a1e65cb3d 100644
--- a/src/pubkey/pk_algs.h
+++ b/src/pubkey/pk_algs.h
@@ -12,12 +12,12 @@
namespace Botan {
-BOTAN_DLL Public_Key* make_public_key(const AlgorithmIdentifier& alg_id,
- const MemoryRegion<byte>& key_bits);
+Public_Key* make_public_key(const AlgorithmIdentifier& alg_id,
+ const MemoryRegion<byte>& key_bits);
-BOTAN_DLL Private_Key* make_private_key(const AlgorithmIdentifier& alg_id,
- const MemoryRegion<byte>& key_bits,
- RandomNumberGenerator& rng);
+Private_Key* make_private_key(const AlgorithmIdentifier& alg_id,
+ const MemoryRegion<byte>& key_bits,
+ RandomNumberGenerator& rng);
}
diff --git a/src/pubkey/workfactor.h b/src/pubkey/workfactor.h
index 653f697e3..c4fc3baa7 100644
--- a/src/pubkey/workfactor.h
+++ b/src/pubkey/workfactor.h
@@ -12,10 +12,12 @@
namespace Botan {
-/*
-* Work Factor Estimates
+/**
+* Estimate work factor
+* @param prime_group_size size of the group in bits
+* @return estimated security level for this group
*/
-BOTAN_DLL u32bit dl_work_factor(u32bit prime_group_size);
+u32bit dl_work_factor(u32bit prime_group_size);
}