Code example for DSAParameterSpec

0
 
            AlgorithmParameters params;
 
            try 
            { 
                params = AlgorithmParameters.getInstance("DSA", BouncyCastleProvider.PROVIDER_NAME);
                params.init(new DSAParameterSpec(p.getP(), p.getQ(), p.getG()));
            } 
            catch (Exception e)
            { 
                throw new RuntimeException(e.getMessage());
            } 
 
            return params;
        } 
    } 
 
    // BEGIN android-removed 
    // public static class GOST3410 
    //     extends JDKAlgorithmParameterGenerator 
    // {