diff options
author | fstrenzke <[email protected]> | 2014-11-26 18:19:47 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-11-26 18:19:47 +0000 |
commit | 0ef9ee80a015c7c88902cd435cff9e54c7db5dc1 (patch) | |
tree | 8a2461cd384fee3da5e9469721e013380b450443 /src/lib/pubkey/mce/gf2m_rootfind_dcmp.h | |
parent | 2561eaf5c4794a97d2a2091b894d69e2c9f70c24 (diff) |
Add an implementation of McEliece encryption based on HyMES
(https://www.rocq.inria.fr/secret/CBCrypto/index.php?pg=hymes).
The original version is LGPL but cryptsource GmbH has secured
permission to release it under a BSD license. Also includes the
Overbeck CCA2 message encoding scheme.
Diffstat (limited to 'src/lib/pubkey/mce/gf2m_rootfind_dcmp.h')
-rw-r--r-- | src/lib/pubkey/mce/gf2m_rootfind_dcmp.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lib/pubkey/mce/gf2m_rootfind_dcmp.h b/src/lib/pubkey/mce/gf2m_rootfind_dcmp.h new file mode 100644 index 000000000..8e1e1cd75 --- /dev/null +++ b/src/lib/pubkey/mce/gf2m_rootfind_dcmp.h @@ -0,0 +1,24 @@ +/** + * + * (C) 2014 cryptosource GmbH + * (C) 2014 Falko Strenzke [email protected] + * + * Distributed under the terms of the Botan license + * + */ + +#ifndef __gf2m_rootfind_dcmp__H_ +#define __gf2m_rootfind_dcmp__H_ + +#include <botan/polyn_gf2m.h> +namespace Botan +{ + /** + * Find the roots of a polynomial over GF(2^m) using the method by Federenko + * et al. + */ + secure_vector<gf2m> find_roots_gf2m_decomp(const polyn_gf2m & polyn, u32bit code_length); + +} // end namespace Botan + +#endif /* h-guard */ |