PrivateKey.hpp 702 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __PRIVATEKEY_HPP
  2. #define __PRIVATEKEY_HPP
  3. #include "Bipoint.hpp"
  4. #include "Fp.hpp"
  5. #include "zout.hpp"
  6. #include "Quadripoint.hpp"
  7. #include "fp12e.h"
  8. extern const curvepoint_fp_t bn_curvegen;
  9. class PrivateKey
  10. {
  11. public:
  12. PrivateKey() = default;
  13. PrivateKey(Fp a, Fp b, Fp c, Fp d, Fp e, Fp f, Fp g, Fp h);
  14. void set(Fp a, Fp b, Fp c, Fp d, Fp e, Fp f, Fp g, Fp h);
  15. Fp get(string name);
  16. void print() const;
  17. Bipoint<curvepoint_fp_t> pi_1(Bipoint<curvepoint_fp_t>);
  18. Bipoint<twistpoint_fp2_t> pi_2(Bipoint<twistpoint_fp2_t>);
  19. Quadripoint pi_T(Quadripoint);
  20. private :
  21. Fp i1, j1, k1, l1, i2, j2, k2, l2;
  22. };
  23. //to remove after debug REMOVE
  24. //extern PrivateKey private_key;
  25. #endif