1 package civitas.crypto.msg.tests;
2
3 import civitas.crypto.msg.ElGamalMsg;
4 import civitas.crypto.parameters.tests.ElGamalParametersTestData;
5 import civitas.util.CivitasBigInteger;
6 import civitas.util.CivitasBigIntegerFactory;
7
8 public interface ElgamalMsgTestData extends ElGamalParametersTestData {
9
10 String VOTE = "3,(2,5),0,4,1";
11
12 ElGamalMsg ONE_ENCODED = new ElGamalMsg(BIGINT_G.modPow(ONE, BIGINT_P));
13 ElGamalMsg TWO_ENCODED = new ElGamalMsg(BIGINT_G.modPow(TWO, BIGINT_P));
14
15 CivitasBigInteger MESSAGE_VOTE_CAPABILITY_SHARE = CivitasBigIntegerFactory.obtain(VOTE.getBytes());
16
17 CivitasBigInteger MESSAGE_VOTE_CAPABILITY_SHARE_ENCODED = BIGINT_G.modPow(MESSAGE_VOTE_CAPABILITY_SHARE, BIGINT_P);
18 ElGamalMsg EL_GAMAL_MESSAGE_VOTE_CAPABILITY_SHARE = new ElGamalMsg(MESSAGE_VOTE_CAPABILITY_SHARE_ENCODED);
19 }