Package org.bouncycastle.jce.spec

Examples of org.bouncycastle.jce.spec.ElGamalParameterSpec


                throw new InvalidAlgorithmParameterException("parameter object not a DHParameterSpec or an ElGamalParameterSpec");
            }
           
            if (params instanceof ElGamalParameterSpec)
            {
                ElGamalParameterSpec     elParams = (ElGamalParameterSpec)params;

                param = new ElGamalKeyGenerationParameters(random, new ElGamalParameters(elParams.getP(), elParams.getG()));
            }
            else
            {
                DHParameterSpec     dhParams = (DHParameterSpec)params;
View Full Code Here


            }
            else
            {
                DHParameterSpec s = (DHParameterSpec)paramSpec;
               
                this.currentSpec = new ElGamalParameterSpec(s.getP(), s.getG());
            }
        }
View Full Code Here

            try
            {
                ElGamalParameter elP = new ElGamalParameter((ASN1Sequence)aIn.readObject());

                currentSpec = new ElGamalParameterSpec(elP.getP(), elP.getG());
            }
            catch (ClassCastException e)
            {
                throw new IOException("Not a valid ElGamal Parameter encoding.");
            }
View Full Code Here

TOP

Related Classes of org.bouncycastle.jce.spec.ElGamalParameterSpec

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.