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

Ed25519: Accept standard (correct) form of PKCS#8 v2 encoding #1480

Merged
merged 5 commits into from
Apr 11, 2022

Conversation

briansmith
Copy link
Owner

@briansmith briansmith commented Apr 6, 2022

See individual commits for details. With this change, both the old (wrong) form and the new (correct) form are accepted.

@briansmith briansmith self-assigned this Apr 6, 2022
@briansmith
Copy link
Owner Author

Fixes #834.

Actually, this won't fix #834. It is a prerequisite for fixing #834. The fix for #834 is to change how to generate PKCS#8 v2 documents. That will be done in the next PR.

I verified the key value is the same in the draft and the final RFC.
…for correct encoding.

These new tests have the wrong expected results because of the bug that will be fixed in the
next commit.
…t tagging public key.

See the added API documentation for more details.

Also update the test private key to the standard format.
@briansmith briansmith force-pushed the b/accept-rfc-pkcs8-2 branch from a647032 to b9124b6 Compare April 8, 2022 00:40
@codecov
Copy link

codecov bot commented Apr 8, 2022

Codecov Report

Merging #1480 (b9124b6) into main (fe12e51) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1480   +/-   ##
=======================================
  Coverage   91.86%   91.86%           
=======================================
  Files         130      130           
  Lines       18367    18381   +14     
  Branches      195      195           
=======================================
+ Hits        16873    16886   +13     
- Misses       1460     1461    +1     
  Partials       34       34           
Impacted Files Coverage Δ
src/ec/curve25519/ed25519/signing.rs 100.00% <100.00%> (ø)
src/io/der.rs 96.35% <100.00%> (+0.16%) ⬆️
src/pkcs8.rs 99.00% <100.00%> (+0.04%) ⬆️
src/io/der_writer.rs 97.82% <0.00%> (-2.18%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe12e51...b9124b6. Read the comment docs.

@briansmith briansmith merged commit 0f3bf00 into main Apr 11, 2022
@briansmith briansmith deleted the b/accept-rfc-pkcs8-2 branch April 11, 2022 19:33
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.

1 participant