intrsa_decrypt_tr(conststruct rsa_public_key *pub,conststruct rsa_private_key *key,void*random_ctx, nettle_random_func *random,unsigned*length,uint8_t*message,constmpz_tgibberish){mpz_tm, ri;intres;mpz_init_set(m, gibberish); mpz_init (ri); _rsa_blind (pub, random_ctx, random, m,...
voidSecretShare::getShares(mpz_t** shares,mpz_t* secrets,intsize){mpz_tcoefficient; mpz_init(coefficient);mpz_ttemp;mpz_init_set_ui(temp,0);intpeer;for(inti =0; i < size; i++){for(intdegree =0; degree < threshold+1; degree++){if(degree ==0) mpz_set(coefficient,secrets[i]);...
voidSecretShare::getShares(mpz_t** shares,mpz_t* secrets,intsize){mpz_tcoefficient; mpz_init(coefficient);mpz_ttemp;mpz_init_set_ui(temp,0);intpeer;for(inti =0; i < size; i++){for(intdegree =0; degree < threshold+1; degree++){if(degree ==0) mpz_set(coefficient,secrets[i]);...