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