You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
943 B

  1. /**
  2. * @file f_field.h
  3. * @brief Field-specific code.
  4. * @copyright
  5. * Copyright (c) 2014 Cryptography Research, Inc. \n
  6. * Released under the MIT License. See LICENSE.txt for license information.
  7. * @author Mike Hamburg
  8. */
  9. #ifndef __F_FIELD_H__
  10. #define __F_FIELD_H__ 1
  11. #include "constant_time.h"
  12. #include <string.h>
  13. #include "p480.h"
  14. #define FIELD_BITS 480
  15. #define field_t p480_t
  16. #define field_mul p480_mul
  17. #define field_sqr p480_sqr
  18. #define field_add_RAW p480_add_RAW
  19. #define field_sub_RAW p480_sub_RAW
  20. #define field_mulw p480_mulw
  21. #define field_bias p480_bias
  22. #define field_isr p480_isr
  23. #define field_inverse p480_inverse
  24. #define field_weak_reduce p480_weak_reduce
  25. #define field_strong_reduce p480_strong_reduce
  26. #define field_serialize p480_serialize
  27. #define field_deserialize p480_deserialize
  28. #endif /* __F_FIELD_H__ */