kyber512r3_ntt_avx2.h 1009 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <stdint.h>
  3. #if defined(S2N_KYBER512R3_AVX2_BMI2)
  4. #include <immintrin.h>
  5. #define ntt_avx2_asm S2N_KYBER_512_R3_NAMESPACE(ntt_avx2_asm)
  6. void ntt_avx2_asm(__m256i *r, const __m256i *qdata);
  7. #define invntt_avx2_asm S2N_KYBER_512_R3_NAMESPACE(invntt_avx2_asm)
  8. void invntt_avx2_asm(__m256i *r, const __m256i *qdata);
  9. #define nttunpack_avx2_asm S2N_KYBER_512_R3_NAMESPACE(nttunpack_avx2_asm)
  10. void nttunpack_avx2_asm(__m256i *r, const __m256i *qdata);
  11. #define basemul_avx2_asm S2N_KYBER_512_R3_NAMESPACE(basemul_avx2_asm)
  12. void basemul_avx2_asm(__m256i *r,
  13. const __m256i *a,
  14. const __m256i *b,
  15. const __m256i *qdata);
  16. #define ntttobytes_avx2_asm S2N_KYBER_512_R3_NAMESPACE(ntttobytes_avx2_asm)
  17. void ntttobytes_avx2_asm(uint8_t *r, const __m256i *a, const __m256i *qdata);
  18. #define nttfrombytes_avx2_asm S2N_KYBER_512_R3_NAMESPACE(nttfrombytes_avx2_asm)
  19. void nttfrombytes_avx2_asm(__m256i *r, const uint8_t *a, const __m256i *qdata);
  20. #endif