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

Segmentation fault #4

Open
marvellous987 opened this issue Nov 25, 2023 · 0 comments
Open

Segmentation fault #4

marvellous987 opened this issue Nov 25, 2023 · 0 comments

Comments

@marvellous987
Copy link

marvellous987 commented Nov 25, 2023

Hi,

I encounter Segmentation fault: 11 when using the C version of the code in my MacOS (x86). And, I encounter Segmentation fault (core dumped) when using the C version of the code in my B2s Azure virtual machine.

The code:

gamal_ciphertext_t test_1;
gamal_ciphertext_t test_2;
gamal_ciphertext_t test_sum;

gamal_encrypt(test_1, key, 502);
gamal_encrypt(test_2, key, 482);
gamal_add(test_sum, test_1, test_2);

dig_t test_plain;
gamal_decrypt(&test_plain, key, test_scalar_mul, table);

It return Segmentation fault sometimes during the gamal_add and sometimes during the decrypt function. (I tried to print out something after each line.)

May I ask if I have done something wrongly? And, the implementation is tested on which kind of machine?

Thank you.

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

1 participant