Class BaseAlgorithmParameterGenerator

java.lang.Object
java.security.AlgorithmParameterGeneratorSpi
org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameterGenerator
Direct Known Subclasses:
DES.AlgParamGen

public abstract class BaseAlgorithmParameterGenerator
extends AlgorithmParameterGeneratorSpi
  • Field Details

    • random

      protected SecureRandom random
    • strength

      protected int strength
  • Constructor Details

    • BaseAlgorithmParameterGenerator

      public BaseAlgorithmParameterGenerator()
  • Method Details

    • engineInit

      protected void engineInit​(int strength, SecureRandom random)
      Description copied from class: AlgorithmParameterGeneratorSpi
      Initializes this AlgorithmParameterGeneratorSpi with the given size and the given SecureRandom. The default parameter set will be used.
      Specified by:
      engineInit in class AlgorithmParameterGeneratorSpi
      Parameters:
      strength - the size (in number of bits).
      random - the source of randomness.