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

fix for invalid ecdsa oids for signatures #1105

Merged
merged 4 commits into from
Mar 28, 2024
Merged

fix for invalid ecdsa oids for signatures #1105

merged 4 commits into from
Mar 28, 2024

Conversation

Lonzak
Copy link
Contributor

@Lonzak Lonzak commented Mar 19, 2024

Corrected the OIDs for several algorithms (RSA, DSA and ECDSA) when signing with openPDF.

@Lonzak Lonzak changed the title fix for https://stackoverflow.com/questions/72470601/wrong-ecdsa-oid-… fix for invalid ecdsa oids for signatures Mar 21, 2024
@Lonzak
Copy link
Contributor Author

Lonzak commented Mar 21, 2024

@mkl-public Code review appreciated :-)

Copy link
Contributor

@mkl-public mkl-public left a comment

Choose a reason for hiding this comment

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

The changes in ExceptionConverter are unrelated (and IMO mostly unnecessary, but that is indeed a matter of opinion). Nonetheless, they don't break anything either.

The PdfPKCS7 changes are pivotal and look appropriate. You may consider adding tests for at least a representative selection of the Algorithms.

Also consider the Codacy remarks, they are meant to introduce a common style which in turn improves readability.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@Lonzak
Copy link
Contributor Author

Lonzak commented Mar 22, 2024

Fixed the codacy issues.

@asturio
Copy link
Member

asturio commented Mar 27, 2024

Looks good. Are you ready with your changes, @Lonzak ?

@asturio asturio linked an issue Mar 27, 2024 that may be closed by this pull request
@asturio asturio merged commit 588f7ed into LibrePDF:1.3-java8 Mar 28, 2024
3 of 5 checks passed
@asturio
Copy link
Member

asturio commented Mar 28, 2024

Merged that. If you want, you may add some tests for this.

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.

ECDSA signing and correct OIDs
3 participants