Class FipsDH.KeyGenParameters

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

public static final class FipsDH.KeyGenParameters extends FipsParameters
Parameters for Diffie-Hellman key pair generation.
  • Constructor Details

    • KeyGenParameters

      public KeyGenParameters(DHDomainParameters domainParameters)
      Constructor for the default algorithm ID.
      Parameters:
      domainParameters - Diffie-Hellman domain parameters any generated keys will be for.
    • KeyGenParameters

      public KeyGenParameters(FipsDH.AgreementParameters parameters, DHDomainParameters domainParameters)
      Base constructor for specifying an algorithm ID from a parameter set.
      Parameters:
      parameters - the parameters containing the algorithm the generated keys are for.
      domainParameters - Diffie-Hellman domain parameters any generated keys will be for.
    • KeyGenParameters

      public KeyGenParameters(FipsDH.MQVAgreementParametersBuilder builder, DHDomainParameters domainParameters)
      Base constructor for specifying an algorithm ID from an MQV builder.
      Parameters:
      builder - the parameters containing the algorithm the generated keys are for.
      domainParameters - Diffie-Hellman domain parameters any generated keys will be for.
    • KeyGenParameters

      public KeyGenParameters(FipsDH.DHUAgreementParametersBuilder builder, DHDomainParameters domainParameters)
      Base constructor for specifying an algorithm ID from an Diffie-Hellman Unified builder.
      Parameters:
      builder - the parameters containing the algorithm the generated keys are for.
      domainParameters - Diffie-Hellman domain parameters any generated keys will be for.
  • Method Details

    • getDomainParameters

      public DHDomainParameters getDomainParameters()
      Return the Diffie-Hellman domain parameters for this object.
      Returns:
      the Diffie-Hellman domain parameter set.