sslab-gatech / opensgx

OpenSGX
Other
296 stars 80 forks source link

why does a loop slows down my code compared to a regular execution ? #63

Open BoujdadFz opened 5 years ago

BoujdadFz commented 5 years ago

Hello, I wrote an enclave that generates an asymmetric encryption/decryption keys of 2048 bits. With a regular program, it runs in seconds, but within the enclave this is taking a lifetime. There is a do-while loop in my program which causes the slowdown but cant figure out why it would run differently. Can you help me with some hints please ?

Thank you for your help.