#ifndef POLYVEC_H #define POLYVEC_H #include #include "params.h" #include "poly.h" typedef struct{ poly vec[KYBER_K_MAX]; } polyvec; #define polyvec_compress KYBER_NAMESPACE(polyvec_compress) void polyvec_compress(ml_kem_params *params, uint8_t *r, const polyvec *a); #define polyvec_decompress KYBER_NAMESPACE(polyvec_decompress) void polyvec_decompress(ml_kem_params *params, polyvec *r, const uint8_t *a); #define polyvec_tobytes KYBER_NAMESPACE(polyvec_tobytes) void polyvec_tobytes(ml_kem_params *params, uint8_t *r, const polyvec *a); #define polyvec_frombytes KYBER_NAMESPACE(polyvec_frombytes) void polyvec_frombytes(ml_kem_params *params, polyvec *r, const uint8_t *a); #define polyvec_ntt KYBER_NAMESPACE(polyvec_ntt) void polyvec_ntt(ml_kem_params *params, polyvec *r); #define polyvec_invntt_tomont KYBER_NAMESPACE(polyvec_invntt_tomont) void polyvec_invntt_tomont(ml_kem_params *params, polyvec *r); #define polyvec_basemul_acc_montgomery KYBER_NAMESPACE(polyvec_basemul_acc_montgomery) void polyvec_basemul_acc_montgomery(ml_kem_params *params, poly *r, const polyvec *a, const polyvec *b); #define polyvec_reduce KYBER_NAMESPACE(polyvec_reduce) void polyvec_reduce(ml_kem_params *params, polyvec *r); #define polyvec_add KYBER_NAMESPACE(polyvec_add) void polyvec_add(ml_kem_params *params, polyvec *r, const polyvec *a, const polyvec *b); #endif