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

Add limited support for RS256 #79

Merged
merged 19 commits into from
Mar 10, 2024
Merged

Add limited support for RS256 #79

merged 19 commits into from
Mar 10, 2024

Conversation

Firehed
Copy link
Owner

@Firehed Firehed commented Mar 10, 2024

Adds support for RSA COSE key parsing and subsequent reformatting to PEM. For the most part, everything downstream Just Works since it implements the same PublicKeyInterface as EllipticCurve

In theory, this should work in all (legal) assertion paths. I'm less sure about attestation, so I'm indicating only partial support in the README. As the remaining attestation formats get supported, this should become extremely clear. Most formats don't really look at the public key in favor of the bundled certificate chain.

Copy link

codecov bot commented Mar 10, 2024

Codecov Report

Attention: Patch coverage is 96.96970% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 81.30%. Comparing base (69fdcd3) to head (f33d4bf).

Files Patch % Lines
src/PublicKey/RSA.php 96.55% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #79      +/-   ##
============================================
+ Coverage     78.51%   81.30%   +2.78%     
- Complexity      304      307       +3     
============================================
  Files            32       33       +1     
  Lines           954      984      +30     
============================================
+ Hits            749      800      +51     
+ Misses          205      184      -21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Firehed Firehed merged commit dae5e0a into main Mar 10, 2024
14 checks passed
@Firehed Firehed deleted the rs256-partial branch March 10, 2024 04:42
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