libtc  20160415
Threshold Cryptography functions library
Functions
poly.c File Reference
#include <assert.h>
#include <gmp.h>
#include <stdlib.h>
#include "mathutils.h"

Go to the source code of this file.

Functions

poly_tcreate_random_poly (mpz_t d, size_t size, mpz_t m)
 
void clear_poly (poly_t *poly)
 
void poly_eval (mpz_t rop, poly_t *poly, mpz_t x)
 
void poly_eval_ui (mpz_t rop, poly_t *poly, unsigned long op)
 

Function Documentation

void clear_poly ( poly_t poly)

Definition at line 35 of file poly.c.

poly_t* create_random_poly ( mpz_t  d,
size_t  size,
mpz_t  m 
)

GMP-based polynomial library

Definition at line 9 of file poly.c.

void poly_eval ( mpz_t  rop,
poly_t poly,
mpz_t  x 
)

Definition at line 49 of file poly.c.

void poly_eval_ui ( mpz_t  rop,
poly_t poly,
unsigned long  op 
)

Definition at line 70 of file poly.c.