-
Notifications
You must be signed in to change notification settings - Fork 77
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
Move getting native pointer to ECUtils and acquire during init #792
Conversation
853813e
to
841e238
Compare
There was a problem hiding this 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
.
closed/src/java.base/share/classes/sun/security/ec/NativeECDHKeyAgreement.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/sun/security/ec/NativeECDHKeyAgreement.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/sun/security/ec/NativeECDHKeyAgreement.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/sun/security/ec/NativeECDHKeyAgreement.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/sun/security/ec/NativeECDSASignature.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/sun/security/ec/NativeECDSASignature.java
Show resolved
Hide resolved
closed/src/java.base/share/classes/sun/security/ec/NativeECUtil.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/sun/security/ec/NativeECUtil.java
Outdated
Show resolved
Hide resolved
closed/src/java.base/share/classes/sun/security/ec/NativeECUtil.java
Outdated
Show resolved
Hide resolved
5bcd417
to
9c8e09a
Compare
closed/src/java.base/share/classes/sun/security/ec/NativeECDSASignature.java
Outdated
Show resolved
Hide resolved
1a46f1e
to
68cad76
Compare
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]>
68cad76
to
5615b8e
Compare
Is that OK? |
Jenkins test sanity zlinux jdknext |
Grinders:
|
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 fromSunEC
.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 theRawECDSA
subclass are, also, updated to use the java implementation, if one has been initialized.Signed-off by: Kostas Tsiounis [email protected]