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.

polyvec.c 435B

1234567891011121314151617
  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. }