Skip to content

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

@jonasfj

Description

@jonasfj

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 #53

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions