sgx-pytorch 远程认证因 ms3 类型不匹配而失败

问题描述 投票:0回答:0

我正在尝试运行 SGX-Pytorch。 https://github.com/intel/sgx-pytorch/tree/sgx

我成功地按照 enclaves_op 的说明设置了环境。在SGX中运行安全模型之前,需要运行“dkeycache”并通过“dkeyserver”执行远程证明。但是,我在远程认证期间遇到错误,表明 msg3 不匹配。

请注意,SGX SDK 提供的默认远程认证运行良好,并且 msg 3 也已成功验证。但对于 SGX-Pytorch 来说,它不起作用。

以下是日志:

dhar@SGX-server:~/temp/sgx-pytorch/enclave_ops/deployment/bin/dkeycache$ sudo ./dkeycache 
Connect dkeyserver success!
Call sgx_ra_get_msg1_ex success, the MSG1 body generated.
Sending MSG1 to remote attestation service provider, and expecting MSG2 back...
MSG2 recieved success!
Call sgx_ra_proc_msg2_ex success.
Sending MSG3 to remote attestation service provider,expecting attestation result msg back...
Error, the attestaion MSG's type is not matched!

Call enclave_ra_close success.
Failed(-1) to setup the secure channel.
failed to initialize the dkeycache service.
dkeycache service is ON...



dhar@SGX-server:~/temp/sgx-pytorch/enclave_ops/deployment/bin/dkeyserver$ sudo ./dkeyserver 
Waiting for incoming connections...
New Client(4) connected! IP=127.0.0.1
receive the msg type(1) from client.
Dispatching TYPE_RA_MSG1, body size: 68
send response success with msg type(2)
receive the msg type(3) from client.
Dispatching TYPE_RA_MSG3, body size: 4936
cert_key_type = 0x5
    Error: sgx_qv_get_quote_supplemental_data_size failed: 0x0000
    Info: App: sgx_qv_verify_quote successfully returned.
    Info: App: Verification quote_verification_result=0xa003
verify result is not expected (0xa003)
failed(-1) to handle msg type(3)
send response success with msg type(3)

以前有人使用过 sgx-pytorch 吗?我将非常感谢任何帮助。

security pytorch intel sgx remote-attestation
© www.soinside.com 2019 - 2024. All rights reserved.