google / google/webcrypto.dart

Reject JWK keys that have conflicting "use" and "key_ops"

Open
#58 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Dart
Stars
116
Forks
110
Avg merge
6d 8h
Merged PRs (30d)
9

Description

In chromium this is implemented in `VerifyUsages`:
https://source.chromium.org/chromium/chromium/src/+/main:components/webcrypto/jwk.cc;l=144

Something similar should be done for all the places we import JWK keys.

Then we should still strip `use` and `key_ops` before importing keys on the web, unless we decide to properly implement capabilities, see https://github.com/google/webcrypto.dart/issues/53

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.