81 mpz_t q_squared_inverse;
99 typedef void (*djn_get_rand_t)(
void* buf,
int len);
179 #define PAILLIER_BITS_TO_BYTES(n) ((n) % 8 ? (n) / 8 + 1 : (n) / 8)
182 void djn_pow_mod_n_squared_crt(mpz_t res,
const mpz_t b,
const mpz_t e,
const djn_pubkey_t* pub,
const djn_prvkey_t* prv);
void djn_encrypt(mpz_t res, djn_pubkey_t *pub, mpz_t pt, gmp_randstate_t rnd)
Definition: djn.cpp:187
void djn_decrypt(mpz_t res, djn_pubkey_t *pub, djn_prvkey_t *prv, mpz_t ct)
Definition: djn.cpp:284
void djn_complete_pubkey(unsigned int modulusbits, djn_pubkey_t **pub, mpz_t n, mpz_t h)
Definition: djn.cpp:38
void djn_encrypt_fb(mpz_t res, djn_pubkey_t *pub, mpz_t plaintext, gmp_randstate_t rnd)
Definition: djn.cpp:251
void djn_encrypt_crt(mpz_t res, djn_pubkey_t *pub, djn_prvkey_t *prv, mpz_t pt, gmp_randstate_t rnd)
Definition: djn.cpp:219