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

open ABE encrypted on windows cant be decrypted on linux #55

Open
nguyenquangtrung opened this issue Jan 28, 2021 · 2 comments
Open

open ABE encrypted on windows cant be decrypted on linux #55

nguyenquangtrung opened this issue Jan 28, 2021 · 2 comments

Comments

@nguyenquangtrung
Copy link

No description provided.

@nguyenquangtrung
Copy link
Author

nguyenquangtrung commented Jan 28, 2021

Hi,

I'm using OpenABE for a project
When I encrypted openabe on the windown and send to encrypted text to linux with same key but not decrypted
I don't know if openabe supports this kind of thing?

@PekeDevil
Copy link
Contributor

For decryption, you need to specify a ciphertext, a secret key, and some public parameters, let's call them PK. Public parameters are not exchangeable. I don't think this is an issue of Linux VS windows, but of incompatible PK. If you have a secret key generated in system A, it has been generated according to a PKa, and you may also have generated some ciphertexts related to that system (let's call them CTa).

If you are generating a second system in your windows machine (let's call it system B), you may also have generated PKb, so you will not be able to decrypt things coming from system A. Instead, you need to send the ciphertext and the public parameters, and the user needs to use the corresponding secret key.

Summarizing:

CTa requires PKa and SKa to be decrypted.
CTb requires PKb and SKb to be decrypted.

A user may hold both SKa and SKb, but then they must know when to pick which one to use and the associated PK.

Hope this helps, since I see this issue is quite old. If not, I hope it helps some future user.

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

No branches or pull requests

2 participants