decryption.hpp 460 B

123456789101112131415
  1. #ifndef __DECRYPTION_HPP
  2. #define __DECRYPTION_HPP
  3. #include <unordered_map>
  4. #include "Bipoint.hpp"
  5. #include "Quadripoint.hpp"
  6. #include "PrivateKey.hpp"
  7. #include "pairing.hpp"
  8. int decrypt(const Bipoint<curvepoint_fp_t>& ciphertext, const PrivateKey& private_key);
  9. int decrypt(const Bipoint<twistpoint_fp2_t>& ciphertext, const PrivateKey& private_key);
  10. int decrypt(const Quadripoint& ciphertext, const PrivateKey& private_key);
  11. #endif /* __DECRYPTION_HPP */