-
Notifications
You must be signed in to change notification settings - Fork 58
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
Conversation
Also introduce UnknownAlgorithmError for when "string".parse() as SigningAlg fails.
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
There was a problem hiding this 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!
# Conflicts: # sdk/src/cose_sign.rs # sdk/src/cose_validator.rs # sdk/src/wasm/webcrypto_validator.rs
…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
…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
Changes in this pull request
This PR replaces almost all instances of the
&str
parameters that identify signing algorithms ("ps256"
, etc.) with a newSigningAlg
enum and pushes any conversion to/from the existing string identifiers to a relatively few API edges.Checklist
TO DO
items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.