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