Botan
1.11.15
|
00001 /* 00002 * Public Key Work Factor Functions 00003 * (C) 1999-2007 Jack Lloyd 00004 * 00005 * Botan is released under the Simplified BSD License (see license.txt) 00006 */ 00007 00008 #ifndef BOTAN_WORKFACTOR_H__ 00009 #define BOTAN_WORKFACTOR_H__ 00010 00011 #include <botan/types.h> 00012 00013 namespace Botan { 00014 00015 /** 00016 * Estimate work factor for discrete logarithm 00017 * @param prime_group_size size of the group in bits 00018 * @return estimated security level for this group 00019 */ 00020 size_t dl_work_factor(size_t prime_group_size); 00021 00022 /** 00023 * Estimate work factor for EC discrete logarithm 00024 * @param prime_group_size size of the group in bits 00025 * @return estimated security level for this group 00026 */ 00027 size_t ecp_work_factor(size_t prime_group_size); 00028 00029 } 00030 00031 #endif