Python-ELMO is a Python library which offers an encapsulation of the binary tool ELMO, in order to manipulate it easily in Python and SageMath script.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

reduce.h 207B

12345678910111213
  1. #ifndef REDUCE_H
  2. #define REDUCE_H
  3. #include <stdint.h>
  4. #define MONT 2285 // 2^16 % Q
  5. #define QINV 62209 // q^(-1) mod 2^16
  6. int16_t montgomery_reduce(int32_t a);
  7. int16_t barrett_reduce(int16_t a);
  8. #endif