add ability to use external sharedSecret
function
#183
Labels
enhancement
New feature or request
feature
pinned
a known issue or feature that should not be closed by bots
released
Context
When creating auth JWE or decrypting JWE, the current assumption is that there is access to secretKey material so that
sharedKey()
can be called directly.Examples here, here and here
Problem
This prevents external crypto implementations from being used along with this library.
Solution
In a similar fashion to the
Signer
pattern, I'm proposing that a similar interface be used to allow the use of external crypto.Example:
with a possible implementation along the lines of:
The text was updated successfully, but these errors were encountered: