-
Notifications
You must be signed in to change notification settings - Fork 0
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
SD-1822: Use certificates rather than public keys #240
Conversation
f9b5f21
to
93f5b21
Compare
This comment was marked as outdated.
This comment was marked as outdated.
93f5b21
to
e986168
Compare
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This comment was marked as outdated.
This comment was marked as outdated.
51e6c7b
to
df60ec7
Compare
As a side-effect of this, we can now support EC keys instead of only RSA keys (without having to manually parse and understand the DER/ASN.1 format).
df60ec7
to
affe678
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.
Thanks for your improvements NT! While looking at the code, it is hard to judge if it actually works. I guess you've verified this yourself. Would/can you consider adding some unit tests, to verify this keeps working in the future as well? Also when somebody else needs to change something.
@@ -92,47 +113,21 @@ public class PayloadSignerFactory { | |||
-----END PRIVATE KEY----- | |||
"""; | |||
|
|||
@SuppressWarnings("secrets:S6706") |
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.
Can you add a comment behind it, of what you're actually suppressing? I can guess, but I'd rather read it.
You cannot start any of the PINT scenarios without this code working, so there are already integration tests for this. |
User description
As a side-effect of this, we can now support EC keys instead of only RSA keys (without having to manually parse and understand the DER/ASN.1 format).
PR Type
enhancement
Description
PayloadSignerFactory
to support EC keys in addition to RSA keys, allowing for more flexible cryptographic operations.RSAPayloadSigner
to handle X509 certificates.Changes walkthrough 📝
PayloadSignerFactory.java
Add support for EC keys and certificate handling
ebl/src/main/java/org/dcsa/conformance/standards/ebl/crypto/PayloadSignerFactory.java
RSAPayloadSigner.java
Use X509 certificates instead of RSA public keys
ebl/src/main/java/org/dcsa/conformance/standards/ebl/crypto/impl/RSAPayloadSigner.java