Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

(MINOR) Introduce a new SigningAlg enum #76

Merged
merged 13 commits into from
Jul 19, 2022
Merged

Conversation

scouten-adobe
Copy link
Collaborator

Changes in this pull request

This PR replaces almost all instances of the &str parameters that identify signing algorithms ("ps256", etc.) with a new SigningAlg enum and pushes any conversion to/from the existing string identifiers to a relatively few API edges.

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

@codecov-commenter
Copy link

codecov-commenter commented Jul 15, 2022

Codecov Report

Merging #76 (a1408fa) into main (40fc8df) will increase coverage by 0.36%.
The diff coverage is 77.97%.

@@            Coverage Diff             @@
##             main      #76      +/-   ##
==========================================
+ Coverage   74.12%   74.49%   +0.36%     
==========================================
  Files          65       66       +1     
  Lines       13454    13471      +17     
==========================================
+ Hits         9973    10035      +62     
+ Misses       3481     3436      -45     
Impacted Files Coverage Δ
sdk/src/lib.rs 100.00% <ø> (ø)
sdk/src/manifest.rs 88.20% <ø> (ø)
sdk/src/signer.rs 50.00% <ø> (+50.00%) ⬆️
sdk/src/create_signer.rs 31.03% <20.00%> (+5.10%) ⬆️
sdk/src/utils/test.rs 89.78% <25.00%> (ø)
sdk/src/time_stamp.rs 39.24% <28.57%> (-0.91%) ⬇️
sdk/src/cose_sign.rs 76.05% <50.79%> (+6.30%) ⬆️
sdk/src/cose_validator.rs 66.71% <66.07%> (+0.34%) ⬆️
sdk/src/openssl/ed_signer.rs 71.60% <71.42%> (ø)
sdk/src/validator.rs 54.54% <83.33%> (-1.02%) ⬇️
... and 18 more

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 40fc8df...a1408fa. Read the comment docs.

Copy link
Collaborator

@gpeacock gpeacock left a comment

Choose a reason for hiding this comment

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

I'd been thinking we should do this, thanks for taking it on!

@scouten-adobe scouten-adobe merged commit 2cb7fd8 into main Jul 19, 2022
@scouten-adobe scouten-adobe deleted the signing-alg-enum branch July 19, 2022 16:09
mauricefisher64 added a commit that referenced this pull request Jul 19, 2022
…ync_sign

* 'main' of https://github.com/contentauth/c2pa-rs:
  Prepare 0.9.0 release
  (MINOR) Introduce a new `SigningAlg` enum (#76)
  Support for asynchronous signing of claims (#57)

# Conflicts:
#	sdk/src/cose_sign.rs
#	sdk/src/cose_validator.rs
#	sdk/src/openssl/temp_signer_async.rs
#	sdk/src/signer.rs
#	sdk/src/store.rs
mauricefisher64 added a commit that referenced this pull request Jul 20, 2022
…timize

* 'main' of https://github.com/contentauth/c2pa-rs:
  (MINOR) `IngredientOptions` allow override of hash and thumbnail generation; image library is now a default feature (#79)
  Prepare 0.9.1 release
  Fix publish workflow (#82)
  Prepare 0.9.0 release
  (MINOR) Introduce a new `SigningAlg` enum (#76)

# Conflicts:
#	sdk/src/ingredient.rs
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants