-
Notifications
You must be signed in to change notification settings - Fork 18
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
Why deserialization of CipherText is PlainText? #81
Comments
OK, I added a dummy
|
I think this is correct.
|
But why
|
This is a good question. To be honest, it is possible to use types |
Thank you. So the initialization |
If you initialize a ciphertext directly, then the 2nd parameter should be the corresponding ciphertext (encrypted). |
pailliercryptolib/test/test_serialization.cpp
Line 96 in fdc2135
If I change that PlainText to CipherText, there would have segmentation fault.
I think the test be something like this:
but it failed with segmentation fault
the line
test.cpp:437
isipcl::PlainText pt_after = sk.decrypt(ct_after);
. Did I make any mistake? Thank you!The text was updated successfully, but these errors were encountered: