chiffrement.hpp 890 B

123456789101112131415161718192021222324252627
  1. #ifndef __CHIFFREMENT_HPP
  2. #define __CHIFFREMENT_HPP
  3. #include "BitChiffre.hpp"
  4. #include "BitEvalL1.hpp"
  5. #include "keygen.hpp"
  6. #include "representation.hpp"
  7. //template <typename T>
  8. //void chiffrement(BitEvalL1<T>& bit_chiffre,F2 bit_clair, PublicKey public_key, Type type);
  9. void chiffrement(BitEvalL1<curvepoint_fp_t>& bit_chiffre,F2 bit_clair, PublicKey public_key);
  10. void chiffrement(BitEvalL1<twistpoint_fp2_t>& bit_chiffre,F2 bit_clair, PublicKey public_key);
  11. void chiffrement(BitChiffre& bit_chiffre,F2 bit_clair, PublicKey public_key, Type type);
  12. void chiffrement(Bipoint<curvepoint_fp_t>& ciphertext,F2 bit_clair, PublicKey public_key);
  13. void chiffrement(Bipoint<twistpoint_fp2_t>& ciphertext,F2 bit_clair, PublicKey public_key);
  14. extern const scalar_t bn_n;
  15. extern const curvepoint_fp_t bn_curvegen;
  16. extern const twistpoint_fp2_t bn_twistgen;
  17. #endif /* __CHIFFREMENT_HPP */