}
JCEElGamalPublicKey(
SubjectPublicKeyInfo info)
{
ElGamalParameter params = new ElGamalParameter((ASN1Sequence)info.getAlgorithmId().getParameters());
DERInteger derY = null;
try
{
derY = (DERInteger)info.getPublicKey();
}
catch (IOException e)
{
throw new IllegalArgumentException("invalid info structure in DSA public key");
}
this.y = derY.getValue();
this.elSpec = new ElGamalParameterSpec(params.getP(), params.getG());
}