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

A problem in converting S3ORAM from 7 servers into 3 servers #3

Open
comeonsunny opened this issue Mar 2, 2022 · 2 comments
Open

Comments

@comeonsunny
Copy link
Contributor

##The following is the modifications in config.h:

//=== SECRET SHARING PARAMETER================================================
#define NUM_SERVERS 3
#define PRIVACY_LEVEL 3
const long long int vandermonde[NUM_SERVERS] = {3 , -3 + P, 1};
//SERVER IP ADDRESSES
const std::string SERVER_ADDR[NUM_SERVERS] = {"tcp://localhost", "tcp://localhost", "tcp://localhost"};

##The compiling process has succeed. Then I just meet the next problem.
image
The problem happes in the access process

@thanghoang
Copy link
Owner

Hi, you should change PRIVACY_LEVEL to 1 for 3 servers case

@comeonsunny
Copy link
Contributor Author

Thanks for your quick response.
From my perspective, I just consider the reason changing PRIVACY_LEVEL to 1 for 3 servers case is depended by folllowing equations.
image
which means in this case the client needs at least 2 shares to decrypt the key. Therefore, if the PRIVACY_LEVEL is set to 2, the client needs at least 4 shares to decrypt the key. However, there are only 3 server to provide shares. The results is the decrypting process will be cut down.
But there is another question. TO make it clear, you could see the following picture firstly.
image
IN my limited knowledge world, I think that you have used the SMP protocol in your code. With above condition has been achieved, if I just set PRIVACY_LEVEL to 3 for 3 servers, the result should be reasonable. Becase the client just need 3 shares to decrypt the key.

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