From c24d212115eef97b2b1756198d520ad266f54bcf Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Tue, 22 Nov 2016 10:00:25 +0100 Subject: 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. --- src/lib/pubkey/workfactor.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/pubkey/workfactor.h') 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); } -- cgit v1.2.3