You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
To ensure the wallet maintains control over secrets, the crypto operations in Crypters need to be inside the wallet. However, the formatting of envelopes doesn't conceptually belong to the wallet, and Crypters/Packers should instead ask the wallet to compute crypto operations needed for pack/unpack.
This issue is for refactoring the JWE Authcrypter.
Since the formatting of the envelope is tightly intertwined with the encryption, the logic for formatting will be kept in the crypter.
The wallet should only handle manipulation of keys (especially the private keys) within its boundary.
therefore, operations that deal with private keys should be moved to the wallet. It has been found that only DeriveKEK is manipulating private keys and so it will be moved to the wallet.
Pack/Unpack message functions will be moved from the wallet to their own envelope packager under Packager interface.
To ensure the wallet maintains control over secrets, the crypto operations in Crypters need to be inside the wallet. However, the formatting of envelopes doesn't conceptually belong to the wallet, and Crypters/Packers should instead ask the wallet to compute crypto operations needed for pack/unpack.
This issue is for refactoring the JWE Authcrypter.
Part of #36
The text was updated successfully, but these errors were encountered: