aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2016-11-22 10:00:25 +0100
committerRenĂ© Korthaus <[email protected]>2016-11-22 10:00:25 +0100
commitc24d212115eef97b2b1756198d520ad266f54bcf (patch)
tree180ef0074c6fc4994a5630695c40fa5db083d5c1
parentc8f173235d9b8576c759edda4e7dfbdccc011cf3 (diff)
Export work factor functions
Now that users can implement custom PK ops via Private_Key and Public_Key outside the library, it makes very much sense to provide the work factor functions to them.
-rw-r--r--src/lib/pubkey/workfactor.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/pubkey/workfactor.h b/src/lib/pubkey/workfactor.h
index eb86b6d88..1fccc1a1b 100644
--- a/src/lib/pubkey/workfactor.h
+++ b/src/lib/pubkey/workfactor.h
@@ -17,7 +17,7 @@ namespace Botan {
* @param prime_group_size size of the group in bits
* @return estimated security level for this group
*/
-size_t dl_work_factor(size_t prime_group_size);
+BOTAN_DLL size_t dl_work_factor(size_t prime_group_size);
/**
* Return the appropriate exponent size to use for a particular prime
@@ -29,21 +29,21 @@ size_t dl_work_factor(size_t prime_group_size);
* algorithm can compute the DL in sqrt(x) operations) while minimizing
* the exponent size for performance reasons.
*/
-size_t dl_exponent_size(size_t prime_group_size);
+BOTAN_DLL size_t dl_exponent_size(size_t prime_group_size);
/**
* Estimate work factor for integer factorization
* @param n_bits size of modulus in bits
* @return estimated security level for this modulus
*/
-size_t if_work_factor(size_t n_bits);
+BOTAN_DLL size_t if_work_factor(size_t n_bits);
/**
* Estimate work factor for EC discrete logarithm
* @param prime_group_size size of the group in bits
* @return estimated security level for this group
*/
-size_t ecp_work_factor(size_t prime_group_size);
+BOTAN_DLL size_t ecp_work_factor(size_t prime_group_size);
}