Comments (2)
The math appears to work for values in F_p^12, but for the encryption to be secure, the values that you encrypt must be elements of G_T. The pairing operation at the heart of the proxy reencryption algorithm requires the input to be in GT.
The client should use the SDK to generate the plaintext (by calling gen_plaintext
), derive the symmetric key from it (by calling derive_symmetric_key
), encrypt the plaintext (by calling encrypt
), then encrypt the actual data using the symmetric key and an algorithm like AES256-GCM. The encryption of the plaintext requires that it is an element of GT, and it is less efficient for the client to generate an arbitrary symmetric key and work backward from that to produce an element of GT.
The gen_plaintext
actually does choose a random element in F_p^12, then performs a "final exponentiation" step that yields an element in GT. We initially tried choosing a random value in Fp and just multiplying a seed value in GT by that value to obtain a random element of GT, but that actually takes more time to compute than the final exponentiation.
from recrypt-rs.
@dandelionzbx Hopefully this answers your question - we will close this. Re-open or open another issue if you have additional questions.
from recrypt-rs.
Related Issues (20)
- Migrate CI to github actions
- Re: serde and backends HOT 4
- github.GithubException.GithubException HOT 1
- Cargo publish HOT 1
- Why is the length of plaintext fixed HOT 1
- RUSTSEC-2020-0056: stdweb is unmaintained HOT 1
- target-cpu is not set correctly and is being ignored HOT 1
- Mention patents
- RUSTSEC-2021-0127: serde_cbor is unmaintained HOT 1
- Results from recrypt.transform cannot be serialized HOT 1
- Error Creating PlainText HOT 1
- Why do I have to use Plaintext [u8; 384]? HOT 2
- Function Score functions should be transformed as well HOT 1
- Obtaining bytes used to instantiate Plaintext back HOT 1
- test post please ignore
- What is the point of signing key pairs? HOT 3
- threshold proxy re-encryption? HOT 1
- How to serialize and deserialize EncryptedValue ? HOT 9
- remove godotenv from scratch images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recrypt-rs.