diff options
Diffstat (limited to 'src/lib/pubkey/mce/goppa_code.h')
-rw-r--r-- | src/lib/pubkey/mce/goppa_code.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lib/pubkey/mce/goppa_code.h b/src/lib/pubkey/mce/goppa_code.h new file mode 100644 index 000000000..1c8a163b7 --- /dev/null +++ b/src/lib/pubkey/mce/goppa_code.h @@ -0,0 +1,32 @@ +/** + * (C) Copyright Projet SECRET, INRIA, Rocquencourt + * (C) Bhaskar Biswas and Nicolas Sendrier + * + * (C) 2014 cryptosource GmbH + * (C) 2014 Falko Strenzke [email protected] + * + * Distributed under the terms of the Botan license + * + */ + +#ifndef __goppa_code__H_ +#define __goppa_code__H_ + +#include <botan/polyn_gf2m.h> +#include <botan/mceliece_key.h> + + + +namespace Botan +{ + + std::vector<byte> mceliece_encrypt( const secure_vector<byte> & cleartext, std::vector<byte> const& public_matrix, const secure_vector<gf2m> & err_pos, u32bit code_length); + + +secure_vector<byte> mceliece_decrypt( + secure_vector<gf2m> & error_pos, + const byte *ciphertext, u32bit ciphertext_len, + const McEliece_PrivateKey & key); +} //end namepace Botan + +#endif /* h-guard */ |