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.

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