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.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

polyvec.c 435B

  1. #include <stdint.h>
  2. #include "polyvec.h"
  3. #include "poly.h"
  4. /*************************************************
  5. * Name: polyvec_ntt
  6. *
  7. * Description: Apply forward NTT to all elements of a vector of polynomials
  8. *
  9. * Arguments: - polyvec *r: pointer to in/output vector of polynomials
  10. **************************************************/
  11. void polyvec_ntt(polyvec *r)
  12. {
  13. int i;
  14. for(i=0;i<KYBER_K;i++)
  15. poly_ntt(&r->vec[i]);
  16. }