Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move getting native pointer to ECUtils and acquire during init #792

Merged
merged 1 commit into from
May 28, 2024

Conversation

KostasTsiounis
Copy link
Contributor

The acquisition of a native pointer for an EC key, private or public, is being moved to the ECUtil, instead of the implementation classes of said keys. This allows use of interop keys, rather than just keys coming from SunEC.

The methods to get the pointers to the native keys are called during the initialization phases, to discover the possibility of not being able to utilize the native code and revert to the Java implementation early.

The engineUpdate() methods of the RawECDSA subclass are, also, updated to use the java implementation, if one has been initialized.

Signed-off by: Kostas Tsiounis [email protected]

Copy link
Member

@keithc-ca keithc-ca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the commit summary captures all of the changes in NativeECDSASignature.

@KostasTsiounis KostasTsiounis requested a review from keithc-ca May 27, 2024 17:58
@keithc-ca
Copy link
Member

Please update the commit message, so the summary better captures what this change is about and add some detail to the body of the commit message: that's the best place for the information for someone looking at this years later.

The acquisition of a native pointer for an EC key, private or public, is
being moved to the ECUtil, instead of the implementation classes of said
keys. This allows use of interop keys, rather than just keys coming from
SunEC.

The methods to get the pointers to the native keys are called during the
initialization phases, to discover the possibility of not being able to
utilize the native code and revert to the Java implementation early.

The engineUpdate() methods of the RawECDSA subclass are, also, updated
to use the java implementation, if one has been initialized.

Signed-off by: Kostas Tsiounis <[email protected]>
@KostasTsiounis
Copy link
Contributor Author

Is that OK?

@keithc-ca
Copy link
Member

Jenkins test sanity zlinux jdknext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants