diff options
author | lloyd <[email protected]> | 2014-12-09 02:54:54 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-12-09 02:54:54 +0000 |
commit | 718043cb931cb630b24771999f65aea7c1625c38 (patch) | |
tree | d227b129a95660c91da4751eec1961204e64fc3a /src/lib/pubkey/mce/mceliece.h | |
parent | 0bc9c6b170bd2c52a2fccfda12f767700bb40968 (diff) |
Implement a strength estimator for McEliece keys based on HyMES version
Diffstat (limited to 'src/lib/pubkey/mce/mceliece.h')
-rw-r--r-- | src/lib/pubkey/mce/mceliece.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/pubkey/mce/mceliece.h b/src/lib/pubkey/mce/mceliece.h index ee5f8ab8f..6e6dffe02 100644 --- a/src/lib/pubkey/mce/mceliece.h +++ b/src/lib/pubkey/mce/mceliece.h @@ -143,6 +143,12 @@ class BOTAN_DLL McEliece_Public_Operation : public PK_Ops::Encryption u32bit m_code_length; }; +/** +* Estimate work factor for McEliece +* @return estimated security level for these key parameters +*/ +BOTAN_DLL size_t mceliece_work_factor(size_t code_size, size_t k, size_t t); + } |