libfhe
|
Go to the source code of this file.
Data Structures | |
struct | ring_t |
Main Ring type used to define a polynomial ring. More... | |
Typedefs | |
typedef struct ring_t | ring_t |
Main Ring type used to define a polynomial ring. | |
Functions | |
int | ring_init (ring_t *r, size_t lgd, size_t lgq, size_t lgm) |
Initialize a polynomial ring. More... | |
void | ring_free (ring_t *r) |
Destroy a polynomial ring Free any memory allocated by the polynomial ring. More... | |
This file contains the declaration of the ring_t type, which implements the cyclotomic polynomial ring for a generic modulus
.
void ring_free | ( | ring_t * | r | ) |
Destroy a polynomial ring Free any memory allocated by the polynomial ring.
r | Polynomial ring |
int ring_init | ( | ring_t * | r, |
size_t | lgd, | ||
size_t | lgq, | ||
size_t | lgm | ||
) |
Initialize a polynomial ring.
[out] | r | The polynomial ring |
lgd | The bit length of the polynomial degree | |
lgq | The bit length of the base ring modulus | |
lgm | The bit length of the CRT residues |