Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
Classes | Functions
cx_mlkem_polymat.h File Reference
#include "lcx_mlkem.h"
#include "cx_mlkem_polyvec.h"
Include dependency graph for cx_mlkem_polymat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  polymat
 Matrix of polynomial vectors with up to MLKEM_MAX_K rows. More...
 

Functions

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)
 

Function Documentation

◆ MLKEM_POLYMAT_gen_matrix()

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.

Parameters
[out]aOutput polynomial matrix.
[in]seedSeed of MLKEM_SYMBYTES bytes.
[in]transposedIf non-zero, generate the transposed matrix.
[in]kDimension of the matrix (k x k).

Definition at line 27 of file cx_mlkem_polymat.c.

◆ MLKEM_POLYMAT_gen_matrix_row()

void MLKEM_POLYMAT_gen_matrix_row ( polyvec row,
const uint8_t *  seed,
int32_t  transposed,
uint8_t  i,
uint8_t  k 
)

Definition at line 41 of file cx_mlkem_polymat.c.