Finished BLISS signature generation

This commit is contained in:
Andreas Steffen
2014-11-29 14:51:17 +01:00
parent edd72b6bb9
commit e71813e56d
12 changed files with 1178 additions and 165 deletions
@@ -42,6 +42,15 @@ struct bliss_sampler_t {
*/
bool (*bernoulli_exp)(bliss_sampler_t *this, uint32_t x, bool *accepted);
/**
* Sample according to 1/cosh(x/sigma^2)
*
* @param x Value to be sampled
* @param accepted TRUE if value is accepted, FALSE if rejected
* @result TRUE if sampling was successful
*/
bool (*bernoulli_cosh)(bliss_sampler_t *this, int32_t x, bool *accepted);
/**
* Sample according to 2^(-x^2) for positive x
*
@@ -58,6 +67,14 @@ struct bliss_sampler_t {
*/
bool (*gaussian)(bliss_sampler_t *this, int32_t *z);
/**
* Sample the sign according to the binary distribution
*
* @param positive TRUE if positive
* @result TRUE if sampling was successful
*/
bool (*sign)(bliss_sampler_t *this, bool *positive);
/**
* Destroy bliss_sampler_t object
*/