Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

how to use PBC in SGX

Zack
初学者
3,314 次查看

I want to calculate bilinear mappings in enclaves.How do I import the PBC library into the Enclave project?

 

I am not sure if I configure the enclave correctly.

 

VC++ Directories   -->   Include Directories "pbc/include" 
                                      Library Directories "pbc/lib"
C/C++                    -->   Additional Include Directories "(some SGX default); pbc/include"
Linker                     -->  General  -->  Additional Library Directories "pbc/lib"
                                      Input --> Additional Dependencies: "pbc.lib"

 

But there will be a lot of errors.They look like this:

 

syntax error: ","

 

Undefined identifier 'FILE'

...

0 项奖励
1 解答
JesusG_Intel
主持人
3,285 次查看

Hello Zack,

 

SGX enclaves can be linked only with static libraries and make sure that all library dependencies are also linked statically. You must ensure you are not using any dynamic libraries in your enclave code.

 

在原帖中查看解决方案

0 项奖励
4 回复数
JesusG_Intel
主持人
3,286 次查看

Hello Zack,

 

SGX enclaves can be linked only with static libraries and make sure that all library dependencies are also linked statically. You must ensure you are not using any dynamic libraries in your enclave code.

 

0 项奖励
JesusG_Intel
主持人
3,265 次查看

Hello Zack,


Do you still need help with this issue?


0 项奖励
Frinklin
初学者
2,777 次查看

Hello, I am a beginner of SGX, I would like to ask how to port the PBC library to SGX under Linux, now that I have installed the PBC library and SGX SDK under Linux, how to combine the them.Could you please show me the detailed operation procedure?

0 项奖励
JesusG_Intel
主持人
3,257 次查看

Intel is no longer monitoring this thread. If you want a response from Intel in a follow-up question, please open a new thread.


0 项奖励
回复