29 for (uint32_t i = 0U; i < k; i++) {
30 for (uint32_t j = 0U; j < k; j++) {
31 if (transposed != 0) {
47 for (uint32_t j = 0U; j < k; j++) {
48 if (transposed != 0) {
void MLKEM_POLYMAT_gen_matrix(polymat *a, const uint8_t *seed, int32_t transposed, uint8_t k)
Generates a matrix of polynomials from a seed using rejection sampling.
void MLKEM_POLYMAT_gen_matrix_row(polyvec *row, const uint8_t *seed, int32_t transposed, uint8_t i, uint8_t k)
void MLKEM_SAMPLE_rej_uniform(poly *r, const uint8_t *seed, uint8_t x, uint8_t y)
Samples a polynomial using rejection sampling from a uniform distribution.
ML-KEM (Module-Lattice Key Encapsulation Mechanism) public API.
Matrix of polynomial vectors with up to MLKEM_MAX_K rows.
Vector of polynomials with up to MLKEM_MAX_K elements.