-
Notifications
You must be signed in to change notification settings - Fork 72
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
MPK and MSK key sharing between two executables #77
Comments
This needed to perform,
|
I'm replying a bit late, but I'll leave the answer in case it's still useful. It's a bit long because I think there are certain concepts that I think are important to clarify. In order to do what you are asking for (one endpoint encrypts and another decrypts). Ideally, you need three endpoints:
In addition to that you have to ensure minimum communication between the following endpoints:
Having said that, the step-by-step process is as follows:
With these 3 steps the system would be "initialised", i.e. in theory all endpoints have the necessary parameters to participate in the encrypted communication. There is no need to regenerate the MSK and MPK. Next, to fulfill the encryption and decryption on different endpoints:
Having established this, one important thing I want to make clear is that in order for all participants in the encrypted communication to be able to "talk" to each other, they must share the same MPK. That is, all SKs must be generated with the same MPK and MSK, and all messages must be encrypted and decrypted with the same MPK. Some of your other questions:
This is because you only have to initialize them once.
Hardcoding secret keys is a serious security violation, instead the MSK must be stored securely (e.g. in a TPM). The MPK is public and you can (and indeed should) share it among all members of the communication.
Please consider my answer above, but to manage the MPK and MSK OpenABE offers the following functions:
|
Dear Team,
I am using this openabe library and it's working fine for single executable. One of my requirements is
Exe1:
Initialize
Create object
Keygen
Encrypt
Exe2:
Initialize
Create object
Keygen
Decrypt
This doesnot work. Because of random key generation, mpk and msk are different for every run.
Is there any hack for this to hard code previously generated key in the code. So that for every run keys will not change.
Please suggest the code point, where i can hard code this. Thank you in advance
Regards,
Ganesh
The text was updated successfully, but these errors were encountered: