static org . bouncycastle . crypto . params . DHParameters getDhParameters ( SecureRandom random , DHKeyParametersGenerationParameters params ) { DHParametersGenerator paramGen = new DHParametersGenerator ( ) ; paramGen . init ( params . getStrength ( ) * 8 , params . getCertainty ( ) , random ) ; return paramGen . generateParameters ( ) ; }
Generate DH parameters .