MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / SPDZ_Data_Setup

Method SPDZ_Data_Setup

FHE/NTL-Subs.cpp:311–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 */
310template <>
311void Parameters::SPDZ_Data_Setup(FHE_Params& params, FFT_Data& FTD)
312{
313 CODE_LOCATION_NO_SCOPE
314
315 bigint p;
316 int idx, m;
317 SPDZ_Data_Setup_Primes(p, plaintext_length, idx, m);
318 SPDZ_Data_Setup_Char_p_Sub(idx, m, p, params);
319
320 Zp_Data Zp(p);
321 gfp::init_field(p);
322 FTD.init(R,Zp);
323}
324
325#ifdef USE_NTL
326/* Compute Phi(N) */

Callers

nothing calls this directly

Calls 14

SPDZ_Data_Setup_PrimesFunction · 0.85
invalid_paramsClass · 0.85
char_2_dimensionFunction · 0.85
NoiseBoundsClass · 0.85
phi_NFunction · 0.85
finalize_lengthsFunction · 0.85
runtime_errorFunction · 0.85
initFunction · 0.85
numBitsFunction · 0.85
probPrimeFunction · 0.85
load_or_generateFunction · 0.85
has_optionMethod · 0.80

Tested by

no test coverage detected