* Generate the random data used in key generation */
| 105 | * Generate the random data used in key generation |
| 106 | */ |
| 107 | void DistKeyGen::Gen_Random_Data(PRNG& G) |
| 108 | { |
| 109 | secret.from(GaussianGenerator<bigint>(params.get_DG(), G)); |
| 110 | rc1.generate(G); |
| 111 | rc2.generate(G); |
| 112 | a.randomize(G); |
| 113 | e.from(GaussianGenerator<bigint>(params.get_DG(), G)); |
| 114 | } |
| 115 | |
| 116 | DistKeyGen& DistKeyGen::operator+=(const DistKeyGen& other) |
| 117 | { |
no test coverage detected