integrity-test: Added bliss_param_sets to read-only segment
This commit is contained in:
@@ -32,7 +32,7 @@ struct private_bliss_sampler_t {
|
||||
/**
|
||||
* BLISS parameter the rejection sampling is to be based on
|
||||
*/
|
||||
bliss_param_set_t *set;
|
||||
const bliss_param_set_t *set;
|
||||
|
||||
/**
|
||||
* Bitspender used for random rejection sampling
|
||||
@@ -45,7 +45,8 @@ METHOD(bliss_sampler_t, bernoulli_exp, bool,
|
||||
private_bliss_sampler_t *this, uint32_t x, bool *accepted)
|
||||
{
|
||||
uint32_t x_mask;
|
||||
uint8_t *c, u;
|
||||
uint8_t u;
|
||||
const uint8_t *c;
|
||||
int i;
|
||||
|
||||
x_mask = 1 << (this->set->c_rows - 1);
|
||||
@@ -222,7 +223,7 @@ METHOD(bliss_sampler_t, destroy, void,
|
||||
* See header.
|
||||
*/
|
||||
bliss_sampler_t *bliss_sampler_create(hash_algorithm_t alg, chunk_t seed,
|
||||
bliss_param_set_t *set)
|
||||
const bliss_param_set_t *set)
|
||||
{
|
||||
private_bliss_sampler_t *this;
|
||||
mgf1_bitspender_t *bitspender;
|
||||
|
||||
Reference in New Issue
Block a user