Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
cx_mlkem_polymat.c File Reference

ML-KEM polynomial matrix operations (FIPS 203). More...

#include "lcx_mlkem.h"
#include "cx_mlkem_polymat.h"
#include "cx_mlkem_sample.h"
Include dependency graph for cx_mlkem_polymat.c:

Go to the source code of this file.

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)

Detailed Description

ML-KEM polynomial matrix operations (FIPS 203).

Implements matrix generation from a seed using rejection sampling.

Definition in file cx_mlkem_polymat.c.

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.