1 package civitas.crypto.reencryptfactor.tests;
2
3 import civitas.crypto.parameters.tests.ElGamalParametersTestData;
4 import civitas.crypto.reencryptfactor.ElGamalReencryptFactor;
5 import civitas.util.CivitasBigInteger;
6
7 public interface ElGamalReencryptFactorTestData extends ElGamalParametersTestData {
8
9 ElGamalReencryptFactor ENCRYPT_FACTOR_ZERO = new ElGamalReencryptFactor(ZERO);
10
11 CivitasBigInteger FACTOR_EPRIME = BIGINT_A;
12 CivitasBigInteger G_EXP_FACTOR = BIGINT_G.modPow(FACTOR_EPRIME, BIGINT_P);
13 ElGamalReencryptFactor ELGAMAL_REENCRYPT_FACTOR_EPRIME = new ElGamalReencryptFactor(FACTOR_EPRIME);
14 CivitasBigInteger FACTOR_E = BIGINT_D;
15 ElGamalReencryptFactor ELGAMAL_REENCRYPT_FACTOR_E = new ElGamalReencryptFactor(FACTOR_E);
16 ElGamalReencryptFactor ELGAMAL_REENCRYPT_FACTOR_RANDOMS_0 = new ElGamalReencryptFactor(RANDOMS_0);
17
18 ElGamalReencryptFactor[] FACTORS = RANDOMS.subList(0, 3).stream()
19 .map(x -> ELGAMAL_REENCRYPT_FACTOR_E)
20 .toList()
21 .toArray(new ElGamalReencryptFactor[0]);
22 CivitasBigInteger ZETA = FACTOR_EPRIME.modSubtract(FACTOR_E, BIGINT_Q);
23 }