linefunction.h 792 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * File: dclxvi-20130329/linefunction.h
  3. * Author: Ruben Niederhagen, Peter Schwabe
  4. * Public Domain
  5. */
  6. #ifndef LINEFUNCTION_H
  7. #define LINEFUNCTION_H
  8. #include "fp2e.h"
  9. #include "curvepoint_fp.h"
  10. #include "twistpoint_fp2.h"
  11. void linefunction_add_ate(
  12. fp2e_t rop11,
  13. fp2e_t rop12,
  14. fp2e_t rop13,
  15. twistpoint_fp2_t rop2,
  16. const twistpoint_fp2_t op1,
  17. const twistpoint_fp2_t op2,
  18. const curvepoint_fp_t op3,
  19. const fp2e_struct_t *r2 // r2 = y^2, see "Faster Computation of Tate Pairings"
  20. );
  21. void linefunction_double_ate(
  22. fp2e_t rop11,
  23. fp2e_t rop12,
  24. fp2e_t rop13,
  25. twistpoint_fp2_t rop2,
  26. const twistpoint_fp2_t op1,
  27. const curvepoint_fp_t op3
  28. );
  29. #endif