-
Notifications
You must be signed in to change notification settings - Fork 118
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
[DRAFT] Implement PKCS7_verify, update PKCS7_sign #1993
Draft
WillChilds-Klein
wants to merge
8
commits into
aws:main
Choose a base branch
from
WillChilds-Klein:pkcs7-ruby
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1993 +/- ##
========================================
Coverage 78.89% 78.90%
========================================
Files 595 595
Lines 102451 102915 +464
Branches 14527 14626 +99
========================================
+ Hits 80827 81202 +375
- Misses 20976 21062 +86
- Partials 648 651 +3 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
WillChilds-Klein
force-pushed
the
pkcs7-ruby
branch
2 times, most recently
from
November 18, 2024 18:17
ebb86d2
to
a94835a
Compare
WillChilds-Klein
changed the title
[DO NOT MERGE] Ruby/PKCS7 integration CI checks
[DRAFT] Implement PKCS7_verify, update PKCS7_sign
Nov 18, 2024
(cherry picked from commit f8a47bb166c73cebeaa412844b901bfd4846b51f)
We tried to no-op these functions, but it turns out Ruby depends on them pretty extensively as the interruption mechanism for threads. One of Ruby's tests depends on `EVP_PKEY_CTX_get_app_data` to return an actual value from the callback function, but we return NULL as a no-op. Ruby seems to depend on the `EVP_PKEY` callback function and relevant application data to correctly handle interruptions. Based on the relevant commit messages, the expectation is that the operation is interrupted, but AWS-LC continues resuming the operation and returns a generated RSA key. It looks like we may have to consider implementing functionality for these callback functions. This issue also applies to a test failure in `test/openssl/test_pkey_dh.rb` and `test/openssl/test_pkey_dsa.rb`. We probably aren't going to support DSA, but this will need to be applied to DH somewhere down the line. * Commits: * ruby/openssl@88b90fb * ruby/ruby@d3507e3 new test that verifies this works with `EVP_PKEY_RSA` By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.
WillChilds-Klein
force-pushed
the
pkcs7-ruby
branch
from
November 18, 2024 20:12
a94835a
to
21ba539
Compare
PKCS7_dataInit and PKCS7_dataFinal compile with some caveats Fix build, disable some tests Minor fixups and stubs to let ruby tests run against PKCS7 work Add PKCS7_encrypt/decrypt functions, no compile Imported remaining encrypt/decrypt code, tests run All (hopefully) required PKCS7_verify code added, tests running 6 fail Rebase fixups Fixed parsing errors, adjust test patch with note - [indefinite (original)][1] - [definite (post-patch)][2] [1]: https://lapo.it/asn1js/#MIIDawYJKoZIhvcNAQcDoIIDXDCCA1gCAQAxggEQMIIBDAIBADB1MHAxEDAOBgNVBAoMB2V4YW1wbGUxFzAVBgNVBAMMDlRBUk1BQyBST09UIENBMSIwIAYJKoZIhvcNAQkBFhNzb21lb25lQGV4YW1wbGUub3JnMQswCQYDVQQGEwJVUzESMBAGA1UEBwwJVG93biBIYWxsAgFmMA0GCSqGSIb3DQEBAQUABIGAbKV17HvGYRtRRBNz1QLpW763UedhVj5KXi70o4BJGM04lItAgt6aFC9SruZjpWr1gCYKCaRSAg273DeGTQwsDoZ86CPXzBpptYLz0MteQXYYWUaPZT-xmvx4NgDyk9P9MoT7JifsPrtXuzqCRFXhGdu8d_ru-OWxhHLvKH-bYekwggI9BgkqhkiG9w0BBwEwFAYIKoZIhvcNAwcECBNs2U5mMsd_gIICGFOnLq_EAc9Nv-HjKR3ZVPSJMq0TImjGf5Mvc3nDgI572Hdo2aku0YXM6WjSWkpYtxpg7Cqxfl6hPSefLPUnBqlIoM2qbrE7MSKEVD6-2bW9GqYPFVg4qQLLsOxnxJIMfOvLFfd7guL-iLH424XfiUUxaf8EdZE4u2IEl4REvkS1FoEGwyA4BEGMSe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aYOwqsX5eoT0nnyz1JwapSKDNqm6xOzEihFQ-vtm1vRqmDxVYOKkCy7DsZ8SSDHzryxX3e4Li_oix-NuF34lFMWn_BHWROLtiBJeERL5EtRaBBsMgOARBjEnlT3nUAm2dKmOz3NrZmRN13xFISLMkrRtDW-ougCnABWBmqW4BOpAAdIMLGHB5VjDr7L3QH3E6uo8LR5TtbOvKrb5Fqrk0PZaV_n83XVFDcRB0qr-XlN6KOn091Y-WRSFZWgOU4WTKyOT4ET7sCTOBi_P1S8GOZmwyxap_4qxnhLz_fSd0vO6K5yy7p46cUstfwMpnFXqdh99k4_NlkvyEUFwTs8-BJ0ESRrMysQFerWPmY3t7Fsk04Dm4ZbIk0Ew4J77UlvEb1R6iq8IJMcRLER4O7vFHc2dI4PjuftxfAevzVjMrbNDmhak_cLyPMju1SMt3VLRnc-x3XuhoKf4k59S24HSdzfB88X9Y-jTFlCh1bGnb8KUSW1HqqvXN_kLsbCYvMFnpscUAhPrT8nNXT_no-fzO2xEW0jhzBoF9N--fCLz-wP38tg4xj79vpQMJRJHtFM3td-u0CoMTNJ3N0mQ5abWO8zyCQubGll2_Ebdm8NicRATk2r66fmcCfLXB_etaJ6sECMTme2ICaCzk Passing all self-imposed unit tests! Fix digest test case, down to 3 failing ruby tests (SMIME failure expected) Fix encrypt/decrypt, new test passes Skip SMIME ruby test Added auth test, cert/signature verification still failing Fix auth test, but need to implement default non-detached sign for ruby test Root and leaf use different keys in tests Signed test tests non-detached, fix sign init bug Fix detached signing cleanup, all ruby tests pass! Some updates pursuant to PR 1816 DELETEME: temporarily skip some tests Bring in prior PR changes, fix sign tests
WillChilds-Klein
force-pushed
the
pkcs7-ruby
branch
from
November 18, 2024 22:55
21ba539
to
59a15a7
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DO NOT MERGE. THIS IS JUST A CI PLACEHOLDER.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.