com.ibm.crypto.hdwrCCA.provider

Class DSAParameterGenerator

  • java.lang.Object
    • java.security.AlgorithmParameterGeneratorSpi
      • com.ibm.crypto.hdwrCCA.provider.DSAParameterGenerator


  • public class DSAParameterGenerator
    extends java.security.AlgorithmParameterGeneratorSpi
    This class generates parameters for the DSA algorithm. It uses a default prime modulus size of 1024 bits, which can be overwritten during initialization.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DSAParameterGenerator()
      Constructs a new instance of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected java.security.AlgorithmParameters engineGenerateParameters()
      Generates the parameters.
      protected void engineInit(java.security.spec.AlgorithmParameterSpec genParamSpec, java.security.SecureRandom random)
      Initializes this parameter generator with a set of algorithm-specific parameter generation values.
      protected void engineInit(int size, java.security.SecureRandom random)
      Initializes the receiver with the specified parameter size and source of randomness.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DSAParameterGenerator

        public DSAParameterGenerator()
        Constructs a new instance of this class.
    • Method Detail

      • engineGenerateParameters

        protected java.security.AlgorithmParameters engineGenerateParameters()
        Generates the parameters.
        Specified by:
        engineGenerateParameters in class java.security.AlgorithmParameterGeneratorSpi
        Returns:
        the new AlgorithmParameters object.
      • engineInit

        protected void engineInit(java.security.spec.AlgorithmParameterSpec genParamSpec,
                                  java.security.SecureRandom random)
                           throws java.security.InvalidAlgorithmParameterException
        Initializes this parameter generator with a set of algorithm-specific parameter generation values.
        Specified by:
        engineInit in class java.security.AlgorithmParameterGeneratorSpi
        Parameters:
        genParamSpec - the set of algorithm-specific parameter generation values.
        random - the source of randomness.
        Throws:
        java.security.InvalidAlgorithmParameterException - if the given parameter generation values are inappropriate for this parameter generator.
      • engineInit

        protected void engineInit(int size,
                                  java.security.SecureRandom random)
        Initializes the receiver with the specified parameter size and source of randomness.
        Specified by:
        engineInit in class java.security.AlgorithmParameterGeneratorSpi
        Parameters:
        size - the strength (size of prime) in bits.
        random - the source of randomness.
� Portions Copyright 1997, 2022 IBM Corporation. All rights reserved. � Portions Copyright 1997, 2022, Oracle and/or its affiliates. All rights reserved.