Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Support encrypting plaintexts longer than the RSA limit #1

Open
kgpayne opened this issue Nov 7, 2022 · 0 comments
Open

Support encrypting plaintexts longer than the RSA limit #1

kgpayne opened this issue Nov 7, 2022 · 0 comments

Comments

@kgpayne
Copy link
Contributor

kgpayne commented Nov 7, 2022

RSA has a maximum plaintext size in bytes, as documented here. To overcome this maximum, two approaches present themselves:

  1. Chunk plaintexts according to the supported maximums, and support the concatenation of plaintexts to reconstitute long secrets.
  2. Use envelope encryption, whereby RSA is used to encrypt a symmetric encryption key corresponding to an encryption scheme without byte limits (e.g. AES)

From a brief discussion F2F it was decided that option 1 would be the simplest for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant