Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScrambleDB WASM demo fix / ElGamal based Rerandomizable encryption #80

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jschneider-bensch
Copy link
Contributor

This PR introduces a purely ElGamal-based rerandomizable encryption scheme for arbitrarily long ciphertexts and makes that the default over the HPKE based double encryption.

Unfortunately the purely ElGamal-based encryption scheme is very slow since it basically encodes a message byte for byte as P256 group elements and the performs encryption / randomization / decryption on those encoded message bytes indivually. This takes a lot of time, as does the encoding and decoding.

This should also fix the WASM demo, since we no longer depend on libcrux (for HPKE) by default. We no longer need emscripten to build the demo, running wasm-pack build --target web --features wasm seems to work. Still some issues apparently, since the demo is not displayed when served in the way the old version was served.

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

Successfully merging this pull request may close these issues.

[ScrambleDB] Double encryption is insufficient Fix demo build for up to date libcrux
1 participant