forked from I2P_Developers/i2p.i2p
private, final
This commit is contained in:
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
@ -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.
|
||||||
|
@ -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)
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user