The traits SignEncrypt and DecryptVerify make assumptions about algorithms used and hence don't support, for example, RSS keys at the moment.
A better way of doing it would be to get key type of provided key and choose the algorithm accordingly. We have to find out first what options josekit (which we use for encryption) supports.
The traits
SignEncrypt
andDecryptVerify
make assumptions about algorithms used and hence don't support, for example, RSS keys at the moment. A better way of doing it would be to get key type of provided key and choose the algorithm accordingly. We have to find out first what optionsjosekit
(which we use for encryption) supports.