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

Performing remote attestation #6

Open
gmatesunny opened this issue Jan 30, 2018 · 7 comments
Open

Performing remote attestation #6

gmatesunny opened this issue Jan 30, 2018 · 7 comments

Comments

@gmatesunny
Copy link

Now I have mbed-tls HTTPS server(SGX), How SP (clients, Non SGX) could perform Intel SGX remote attestation of the server. The example here uses https://github.com/intel/linux-sgx TCP sockets for communication. Any insight into how It could be achieved ?

@bl4ck5un
Copy link
Owner

You can find an example of attestation in the Town Crier project I maintain.

@gmatesunny
Copy link
Author

Great, i understood most of the things but what is #include "external/keccak.h" and the corresponding .c file. What is happening in this file.

@bl4ck5un
Copy link
Owner

keccak.h is mostly about SHA3.

@gmatesunny
Copy link
Author

gmatesunny commented Apr 13, 2018

I have an extremely newbie question: How to generate hex format like this 0x03, 0xD4, 0x81, 0x28,

0x36, 0x6F, 0x1C, 0xD7,

0x4F, 0xCA, 0x49, 0x0D,

0x9B, 0x85, 0xB6, 0xAB

from spid. Also the spid i received is 32 character long(32bytes). When I convert to hex it becomes 64 character long(64 bytes).
How to make it to specify as you did i.e. 16 byte length.

@bl4ck5un
Copy link
Owner

IIRC, epid comes as a hex string. The above format is also just a hex string with "0x" appended and "," added.

@gmatesunny
Copy link
Author

gmatesunny commented Apr 17, 2018

Your SPID is: 998FCFAA0B8F4A426288E3ADCE41AE4D ---> This is what I got on registration to IAS.
and in your src/App/attestation.cpp, you have made a variable spid_tc. How you got this value?

uint8_t spid_tc[16] = {
0x03, 0xD4, 0x81, 0x28,
0x36, 0x6F, 0x1C, 0xD7,
0x4F, 0xCA, 0x49, 0x0D,
0x9B, 0x85, 0xB6, 0xAB,
};

I am getting confused. I know epid is retrieved by calling sgx_get_extended_epid_group_id(), is this spid_tc is the same value in hex ? If this is the epid, where should I specify spid. I do not see any such variable in ias_prod.py.

@bl4ck5un
Copy link
Owner

I can't recall... It could be just { 0x99, 0x8F, 0xCF... }

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