Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. /*
  2. * montgomeryOpt.h
  3. *
  4. */
  5.  
  6. #ifndef MONTOGOMERYOPT_H_
  7. #define MONTOGOMERYOPT_H_
  8.  
  9. #include <stdint.h>
  10. #include <inttypes.h>
  11. #include "common.h"
  12.  
  13. // Calculates res = a * b * r^(-1) mod n.
  14. // a, b, n, n_prime represent operands of size elements
  15. // res has (size+1) elements
  16. void montMulOpt(uint32_t *a, uint32_t *b, uint32_t *n, uint32_t *n_prime, uint32_t *res, uint32_t size);
  17.  
  18. #endif /* MONTOGOMERYOPT_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement