Skip to content

fix: normalize use in browser JWK exports - #400

Open
harrshita123 wants to merge 1 commit into
google:masterfrom
harrshita123:fix/jwk-export-use-metadata
Open

harrshita123 wants to merge 1 commit into
google:masterfrom
harrshita123:fix/jwk-export-use-metadata

Conversation

@harrshita123

Copy link
Copy Markdown
Contributor

Fixes #399.

Summary

  • normalize algorithm-appropriate use metadata in browser JWK exports
  • emit enc for encryption keys and sig for signing keys
  • preserve omitted use for ECDH and omitted key_ops and ext
  • add regression coverage for every supported JWK-exporting algorithm

Testing

  • dart format --output none --set-exit-if-changed lib/src test
  • dart analyze --fatal-warnings .
  • dart test --exclude-tags browser-interop -p vm
  • dart test --exclude-tags browser-interop -p chrome -c dart2js
  • dart test --exclude-tags browser-interop -p chrome -c dart2wasm --concurrency=1
  • dart test -p chrome -c dart2js test/wrap_key_equivalence_test.dart
  • dart test -p chrome -c dart2wasm test/wrap_key_equivalence_test.dart

This branch has not been deployed

No deployments
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.

bug: browser JWK exports omit use metadata emitted by the native backend

1 participant