Skip to content

Commit

Permalink
added setting of co-factor to stop potential errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Sep 12, 2016
1 parent 92b4f88 commit eb9b9c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void initialize(
ECParameterSpec p = (ECParameterSpec)params;
this.ecParams = params;

param = new ECKeyGenerationParameters(new ECDomainParameters(p.getCurve(), p.getG(), p.getN()), random);
param = new ECKeyGenerationParameters(new ECDomainParameters(p.getCurve(), p.getG(), p.getN(), p.getH()), random);

engine.init(param);
initialised = true;
Expand Down Expand Up @@ -134,7 +134,7 @@ else if (params == null && BouncyCastleProvider.CONFIGURATION.getEcImplicitlyCa(
ECParameterSpec p = BouncyCastleProvider.CONFIGURATION.getEcImplicitlyCa();
this.ecParams = params;

param = new ECKeyGenerationParameters(new ECDomainParameters(p.getCurve(), p.getG(), p.getN()), random);
param = new ECKeyGenerationParameters(new ECDomainParameters(p.getCurve(), p.getG(), p.getN(), p.getH()), random);

engine.init(param);
initialised = true;
Expand Down

0 comments on commit eb9b9c1

Please sign in to comment.