Skip to content

Convert WebCrypto algorithm to JOSE alg #172

Answered by panva
jonathanstanley asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jonathanstanley

How would such API deal

  • with CryptoKey algorithms that cannot be mapped to a single unique alg value?
  • with CryptoKey algorithms that cannot be mapped to any JOSE algorithm?
  • with CryptoKey algorithms that apply both to alg and enc algorithms but the result algorithm identifier not being the same?

How would such API work when node's KeyObject is passed in? It looks like a WebCrypto only API.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@panva
Comment options

@jonathanstanley
Comment options

@panva
Comment options

Answer selected by jonathanstanley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants