diff options
author | lloyd <[email protected]> | 2014-11-29 14:16:26 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-11-29 14:16:26 +0000 |
commit | e89b6a365e56283a945aeda8ed2b427937fe5d91 (patch) | |
tree | e01cd34049831debff697de3f11fb54d175a8b81 /src/lib/pubkey/workfactor.h | |
parent | 71ff50357af5183995c9af59f1816f065ce9a857 (diff) |
Move all PK workfactor esstimators to workfactors.*
Diffstat (limited to 'src/lib/pubkey/workfactor.h')
-rw-r--r-- | src/lib/pubkey/workfactor.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/pubkey/workfactor.h b/src/lib/pubkey/workfactor.h index 179b580e7..37f487234 100644 --- a/src/lib/pubkey/workfactor.h +++ b/src/lib/pubkey/workfactor.h @@ -19,6 +19,19 @@ namespace Botan { */ size_t dl_work_factor(size_t prime_group_size); +/** +* 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); + +/** +* Estimate work factor for McEliece +* @return estimated security level for this group +*/ +size_t mceliece_work_factor(size_t code_size, size_t t); + } #endif |