Skip to content

Commit 50fb847

Browse files
committed
Get generator point from Group's paramSpec
1 parent 3ea09d2 commit 50fb847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jruby/ext/openssl/PKeyEC.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ private boolean getPointAndGroup(ThreadContext context, IRubyObject groupOrPoint
976976

977977
if ( groupOrPoint instanceof Group) {
978978
this.group = (Group) groupOrPoint;
979-
this.point = (ECPoint) ((Group) groupOrPoint).generator(context);
979+
this.point = this.group.getParamSpec().getGenerator();
980980
} else {
981981
throw runtime.newTypeError(groupOrPoint, _EC(runtime).getClass("Group"));
982982
}

0 commit comments

Comments
 (0)