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

GMP library within enclave: some mpz operations crash #64

Open
BoujdadFz opened this issue Aug 29, 2019 · 1 comment
Open

GMP library within enclave: some mpz operations crash #64

BoujdadFz opened this issue Aug 29, 2019 · 1 comment

Comments

@BoujdadFz
Copy link

hello,

I'm not able to run some of the GMP library operations inside an enclave, in the code attached
I'm getting this error:
qemu: uncaught target signal 4 (Illegal instruction) - core dumped

The program crashes at line 34 of the c program "sof.txt" so it is not able to perform mpz_mod operation, I had the same issue before with mpz_invert but could fix with some other strategy but this one, I have no clue that would respect my scenario.

Could anyone please run this program on their machine and tell if it's running properly?
Thank you in advance,

thisSecretkey.txt
sof.txt

@BoujdadFz
Copy link
Author

I rewrote the program using bignum struct of polarssl instead of using GMP library; now I can get my program run at least; but the performance is still hugely different from that of a normal run, I'm wondering why, is it the emulation impact?

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