Skip to content

Help with Compact (JWE) encryption - CryptoKey instances for asymmetric algorithms must not be of type "secret" #711

Closed Answered by panva
58bits asked this question in Q&A
Discussion options

You must be logged in to vote

A256GCM is not a key management algorithm, it's a content encryption algorithm, so change alg in the protected header to dir to directly use the passed key for the content encryption.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@58bits
Comment options

Answer selected by panva
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