Class FipsRSA.KeyGenParameters

java.lang.Object
org.bouncycastle.crypto.fips.FipsParameters
org.bouncycastle.crypto.fips.FipsRSA.KeyGenParameters
All Implemented Interfaces:
Parameters
Enclosing class:
FipsRSA

public static final class FipsRSA.KeyGenParameters extends FipsParameters
Parameters for RSA key pair generation.
  • Constructor Details

    • KeyGenParameters

      public KeyGenParameters(BigInteger publicExponent, int keySize)
      Base constructor.
      Parameters:
      publicExponent - the public exponent to use.
      keySize - the key size (in bits).
    • KeyGenParameters

      public KeyGenParameters(BigInteger publicExponent, int keySize, int certainty)
      Base constructor with certainty.
      Parameters:
      publicExponent - the public exponent to use.
      keySize - the key size (in bits).
      certainty - certainty to use for prime number calculation.
    • KeyGenParameters

      public KeyGenParameters(FipsRSA.SignatureParameters parameters, BigInteger publicExponent, int keySize)
      Constructor for a key targeted to a specific signature algorithm.
      Parameters:
      parameters - the signature parameter set containing the algorithm.
      publicExponent - the public exponent to use.
      keySize - the key size (in bits).
    • KeyGenParameters

      public KeyGenParameters(FipsRSA.WrapParameters parameters, BigInteger publicExponent, int keySize)
      Constructor for a key targeted to a specific wrap algorithm.
      Parameters:
      parameters - the wrap parameter set containing the algorithm.
      publicExponent - the public exponent to use.
      keySize - the key size (in bits).
    • KeyGenParameters

      public KeyGenParameters(FipsRSA.KTSParameters parameters, BigInteger publicExponent, int keySize)
      Constructor for a key targeted to a specific KTS algorithm.
      Parameters:
      parameters - the KTS parameter set containing the algorithm.
      publicExponent - the public exponent to use.
      keySize - the key size (in bits).
  • Method Details

    • getPublicExponent

      public BigInteger getPublicExponent()
    • getKeySize

      public int getKeySize()
    • getCertainty

      public int getCertainty()