Search in sources :

Example 6 with ElGamalParameterSpec

use of com.github.zhenwei.provider.jce.spec.ElGamalParameterSpec in project LinLong-Java by zhenwei1108.

the class JCEElGamalPrivateKey method readObject.

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    x = (BigInteger) in.readObject();
    this.elSpec = new ElGamalParameterSpec((BigInteger) in.readObject(), (BigInteger) in.readObject());
}
Also used : BigInteger(java.math.BigInteger) ElGamalParameterSpec(com.github.zhenwei.provider.jce.spec.ElGamalParameterSpec)

Example 7 with ElGamalParameterSpec

use of com.github.zhenwei.provider.jce.spec.ElGamalParameterSpec in project LinLong-Java by zhenwei1108.

the class JCEElGamalPublicKey method readObject.

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    this.y = (BigInteger) in.readObject();
    this.elSpec = new ElGamalParameterSpec((BigInteger) in.readObject(), (BigInteger) in.readObject());
}
Also used : BigInteger(java.math.BigInteger) ElGamalParameterSpec(com.github.zhenwei.provider.jce.spec.ElGamalParameterSpec)

Aggregations

ElGamalParameterSpec (com.github.zhenwei.provider.jce.spec.ElGamalParameterSpec)7 BigInteger (java.math.BigInteger)4 DHParameterSpec (javax.crypto.spec.DHParameterSpec)2 ElGamalParameter (com.github.zhenwei.core.asn1.oiw.ElGamalParameter)1 ElGamalKeyGenerationParameters (com.github.zhenwei.core.crypto.params.ElGamalKeyGenerationParameters)1 ElGamalParameters (com.github.zhenwei.core.crypto.params.ElGamalParameters)1 PKCS12BagAttributeCarrierImpl (com.github.zhenwei.provider.jcajce.provider.asymmetric.util.PKCS12BagAttributeCarrierImpl)1 IOException (java.io.IOException)1 InvalidAlgorithmParameterException (java.security.InvalidAlgorithmParameterException)1 InvalidParameterSpecException (java.security.spec.InvalidParameterSpecException)1