hidekatsu-izuno / josekit-rs

JOSE (Javascript Object Signing and Encryption) library for Rust (based on OpenSSL).
Apache License 2.0
74 stars 31 forks source link

feat: async `JweDecrypter` to allow decryption using KMS #33

Open mustakimali opened 6 months ago

mustakimali commented 6 months ago

Motivation

At work, we needed to decrypt JWE using Amazon KMS. Therefore the part that decrypts the CEK using the private key needed to make a network call. It proved difficult due to the lack of async support in the decrypt method in the JweDecrypt trait.

Changes