View Javadoc
1   package civitas.common.mix.capabilitymix;
2   
3   import org.springframework.beans.factory.annotation.Autowired;
4   import org.springframework.stereotype.Controller;
5   
6   import civitas.crypto.ciphertext.ElGamalCiphertextish;
7   import civitas.crypto.ciphertext.ElGamalReencrypt;
8   import civitas.crypto.publickey.ElGamalPublicKey;
9   import civitas.crypto.reencryptfactor.ElGamalReencryptFactor;
10  
11  @Controller
12  public class GetReencryptedCapabilityMix {
13  	@Autowired
14  	ElGamalReencrypt elGamalReencrypt;
15  
16  	public ElGamalCiphertextish apply(
17  			final CapabilityMix that, final int i, final ElGamalReencryptFactor factor, final ElGamalPublicKey key) {
18  		return elGamalReencrypt.apply(key, that.capabilities[i], factor);
19  	}
20  }