private, final

This commit is contained in:
zzz
2016-01-23 14:57:42 +00:00
parent 592f2449d2
commit e276febf0a
6 changed files with 8 additions and 9 deletions

View File

@ -16,11 +16,10 @@ import net.i2p.crypto.elgamal.spec.ElGamalPrivateKeySpec;
public class ElGamalPrivateKeyImpl public class ElGamalPrivateKeyImpl
implements ElGamalPrivateKey, DHPrivateKey implements ElGamalPrivateKey, DHPrivateKey
{ {
static final long serialVersionUID = 4819350091141529678L; private static final long serialVersionUID = 4819350091141529678L;
BigInteger x; private BigInteger x;
private ElGamalParameterSpec elSpec;
ElGamalParameterSpec elSpec;
protected ElGamalPrivateKeyImpl() protected ElGamalPrivateKeyImpl()
{ {

View File

@ -16,7 +16,7 @@ import net.i2p.crypto.elgamal.spec.ElGamalPublicKeySpec;
public class ElGamalPublicKeyImpl public class ElGamalPublicKeyImpl
implements ElGamalPublicKey, DHPublicKey implements ElGamalPublicKey, DHPublicKey
{ {
static final long serialVersionUID = 8712728417091216948L; private static final long serialVersionUID = 8712728417091216948L;
private BigInteger y; private BigInteger y;
private ElGamalParameterSpec elSpec; private ElGamalParameterSpec elSpec;

View File

@ -5,7 +5,7 @@ import java.security.spec.AlgorithmParameterSpec;
public class ElGamalGenParameterSpec public class ElGamalGenParameterSpec
implements AlgorithmParameterSpec implements AlgorithmParameterSpec
{ {
private int primeSize; private final int primeSize;
/* /*
* @param primeSize the size (in bits) of the prime modulus. * @param primeSize the size (in bits) of the prime modulus.

View File

@ -5,7 +5,7 @@ import java.security.spec.KeySpec;
public class ElGamalKeySpec public class ElGamalKeySpec
implements KeySpec implements KeySpec
{ {
private ElGamalParameterSpec spec; private final ElGamalParameterSpec spec;
public ElGamalKeySpec( public ElGamalKeySpec(
ElGamalParameterSpec spec) ElGamalParameterSpec spec)

View File

@ -10,7 +10,7 @@ import java.math.BigInteger;
public class ElGamalPrivateKeySpec public class ElGamalPrivateKeySpec
extends ElGamalKeySpec extends ElGamalKeySpec
{ {
private BigInteger x; private final BigInteger x;
public ElGamalPrivateKeySpec( public ElGamalPrivateKeySpec(
BigInteger x, BigInteger x,

View File

@ -10,7 +10,7 @@ import java.math.BigInteger;
public class ElGamalPublicKeySpec public class ElGamalPublicKeySpec
extends ElGamalKeySpec extends ElGamalKeySpec
{ {
private BigInteger y; private final BigInteger y;
public ElGamalPublicKeySpec( public ElGamalPublicKeySpec(
BigInteger y, BigInteger y,