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

sgx_unseal_data() get 0x3001 error #1068

Open
HuangMinming opened this issue Nov 26, 2024 · 2 comments
Open

sgx_unseal_data() get 0x3001 error #1068

HuangMinming opened this issue Nov 26, 2024 · 2 comments

Comments

@HuangMinming
Copy link

hi everyone,
I call sgx_unseal_data() in sgx environment, sometimes got 0x3001 error which means SGX_ERROR_MAC_MISMATCH: Report verification error.
I found it may happen after the app was recompile and link.
Is it a issue?
I think the app was modified is a normal action. If the app can't unseal data after recompiling and linking, the sealed data become unreadable, and the app can't recover data which was sealed.

@andyzyb
Copy link
Contributor

andyzyb commented Nov 26, 2024

It depends on how the seal data is generated. If you seal the data attached to the Enclave hash, then recompiling will impact it. If you seal the data attached to the Enclave signer, it should work.

@HuangMinming
Copy link
Author

It depends on how the seal data is generated. If you seal the data attached to the Enclave hash, then recompiling will impact it. If you seal the data attached to the Enclave signer, it should work.

Hi, andyzyb. Thanks for you reply. I refered the demo "SealUnseal" to call sgx_seal_data() to seal data , which parameter can determine the mode? I also add a additional_MACtext.

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

2 participants