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.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

poly.h 323B

12345678910111213141516171819
  1. #ifndef POLY_H
  2. #define POLY_H
  3. #include <stdint.h>
  4. #include "params.h"
  5. /*
  6. * Elements of R_q = Z_q[X]/(X^n + 1). Represents polynomial
  7. * coeffs[0] + X*coeffs[1] + X^2*xoeffs[2] + ... + X^{n-1}*coeffs[n-1]
  8. */
  9. typedef struct{
  10. int16_t coeffs[KYBER_N];
  11. } poly;
  12. void poly_ntt(poly *r);
  13. void poly_reduce(poly *r);
  14. #endif