Skip to content

Commit

Permalink
Get generator point from Group's paramSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Jun 17, 2024
1 parent 3ea09d2 commit 50fb847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jruby/ext/openssl/PKeyEC.java
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ private boolean getPointAndGroup(ThreadContext context, IRubyObject groupOrPoint

if ( groupOrPoint instanceof Group) {
this.group = (Group) groupOrPoint;
this.point = (ECPoint) ((Group) groupOrPoint).generator(context);
this.point = this.group.getParamSpec().getGenerator();
} else {
throw runtime.newTypeError(groupOrPoint, _EC(runtime).getClass("Group"));
}
Expand Down

0 comments on commit 50fb847

Please sign in to comment.