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.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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