Examples of ECCKeyGenParameterSpec


Examples of org.bouncycastle.pqc.jcajce.spec.ECCKeyGenParameterSpec

     */
    public void testEnDecryption_SHA256_11_50()
        throws Exception
    {
        // initialize key pair generator
        AlgorithmParameterSpec kpgParams = new ECCKeyGenParameterSpec(11, 50);
        kpg.initialize(kpgParams);

        // perform test
        performEnDecryptionTest(1, 10, 32, null);
    }
View Full Code Here

Examples of org.bouncycastle.pqc.jcajce.spec.ECCKeyGenParameterSpec

    public void testKeyPairEncoding_9_33()
        throws Exception
    {
        kpg = KeyPairGenerator.getInstance("McEliecePKCS");
        ECCKeyGenParameterSpec params = new ECCKeyGenParameterSpec(9, 33);
        kpg.initialize(params);
        performKeyPairEncodingTest();
    }
View Full Code Here

Examples of org.bouncycastle.pqc.jcajce.spec.ECCKeyGenParameterSpec

    public void testKeyPairEncoding_9_33()
        throws Exception
    {
        kpg = KeyPairGenerator.getInstance("McElieceKobaraImai");
        ECCKeyGenParameterSpec params = new ECCKeyGenParameterSpec(9, 33);
        kpg.initialize(params);
        performKeyPairEncodingTest();
    }
View Full Code Here

Examples of org.bouncycastle.pqc.jcajce.spec.ECCKeyGenParameterSpec

     */
    public void testEnDecryption_SHA256_11_50()
        throws Exception
    {
        // initialize key pair generator
        AlgorithmParameterSpec kpgParams = new ECCKeyGenParameterSpec(11, 50);
        kpg.initialize(kpgParams);

        performEnDecryptionTest(1, 10, 32, null);
    }
View Full Code Here

Examples of org.bouncycastle.pqc.jcajce.spec.ECCKeyGenParameterSpec

     * Initialize the key pair generator with the given parameters.
     */
    private void initKPG(int m, int t)
        throws Exception
    {
        ECCKeyGenParameterSpec params = new ECCKeyGenParameterSpec(m, t);
        kpg.initialize(params);
    }
View Full Code Here

Examples of org.bouncycastle.pqc.jcajce.spec.ECCKeyGenParameterSpec

    }

    public void testEnDecryption_9_33()
        throws Exception
    {
        ECCKeyGenParameterSpec params = new ECCKeyGenParameterSpec(9, 33);
        kpg.initialize(params);
        performEnDecryptionTest(2, 10, params);
    }
View Full Code Here

Examples of org.bouncycastle.pqc.jcajce.spec.ECCKeyGenParameterSpec

    }

    public void testEnDecryption_11_50()
        throws Exception
    {
        ECCKeyGenParameterSpec params = new ECCKeyGenParameterSpec(11, 50);
        kpg.initialize(params);
        performEnDecryptionTest(2, 10, params);
    }
View Full Code Here

Examples of org.bouncycastle.pqc.jcajce.spec.ECCKeyGenParameterSpec

        public void initialize(AlgorithmParameterSpec params)
            throws InvalidAlgorithmParameterException
        {
            kpg = new McElieceCCA2KeyPairGenerator();
            super.initialize(params);
            ECCKeyGenParameterSpec ecc = (ECCKeyGenParameterSpec)params;

            McElieceCCA2KeyGenerationParameters mccca2KGParams = new McElieceCCA2KeyGenerationParameters(new SecureRandom(), new McElieceCCA2Parameters(ecc.getM(), ecc.getT()));
            kpg.init(mccca2KGParams);
        }
View Full Code Here

Examples of org.bouncycastle.pqc.jcajce.spec.ECCKeyGenParameterSpec

        public void initialize(AlgorithmParameterSpec params)
            throws InvalidAlgorithmParameterException
        {
            kpg = new McElieceKeyPairGenerator();
            super.initialize(params);
            ECCKeyGenParameterSpec ecc = (ECCKeyGenParameterSpec)params;

            McElieceKeyGenerationParameters mccKGParams = new McElieceKeyGenerationParameters(new SecureRandom(), new McElieceParameters(ecc.getM(), ecc.getT()));
            kpg.init(mccKGParams);
        }
View Full Code Here

Examples of org.bouncycastle.pqc.jcajce.spec.ECCKeyGenParameterSpec

            kpg.init(mccKGParams);
        }

        public void initialize(int keySize, SecureRandom random)
        {
            ECCKeyGenParameterSpec paramSpec = new ECCKeyGenParameterSpec();

            // call the initializer with the chosen parameters
            try
            {
                this.initialize(paramSpec);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.