View Javadoc
1   package civitas.crypto.proof1ofl;
2   
3   import org.springframework.beans.factory.annotation.Autowired;
4   import org.springframework.stereotype.Controller;
5   
6   import civitas.crypto.ciphertextlist.CiphertextList;
7   import civitas.crypto.oneoflreencryption.ElGamal1OfLReencryption;
8   import civitas.crypto.publickey.ElGamalPublicKey;
9   
10  @Controller
11  public class VerifyElGamal1OfLReencryption {
12  
13  	@Autowired
14  	VerifyElGamalProof1OfL verifyElGamalProof1OfLC;
15  
16  	public boolean apply(
17  			final ElGamal1OfLReencryption that,
18  			final ElGamalPublicKey pubKey,
19  			final CiphertextList ciphertexts,
20  			final int l) {
21  		return verifyElGamalProof1OfLC.apply(that.proof(), pubKey, ciphertexts, l, that.m());
22  	}
23  }