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

Missing SecretMessage from Messages.proto #2

Open
j16r opened this issue Dec 17, 2018 · 4 comments
Open

Missing SecretMessage from Messages.proto #2

j16r opened this issue Dec 17, 2018 · 4 comments

Comments

@j16r
Copy link

j16r commented Dec 17, 2018

A quick guess suggests it looks like this:

message SecretMessage {
        required uint32 type = 1;
        required uint32 size = 2;

        required uint32 encrypted_pkey_size = 3;
        required uint32 encrypted_x509_size = 4;
}

Do you have the original code for this or perhaps the version of proto buffers you used to generate the cc/h files.

@followinds
Copy link

Did you run the code successfully? I met a error of this code.
info:
1546510378 INFO : Retrieving SigRL from IAS
1546510378 INFO : curl_easy_perform() 3 failed:
1546510379 INFO : curl_easy_perform() 1 failed: Problem with the local SSL certificate
1546510379 INFO : Response status is: 0
1546510379 INFO : Content-Length: 0
1546510379 INFO : Error, processing MSG1 failed
1546510379 INFO : Close connection
1546510379 INFO : Remote attestation done

my SSL certificate should be correct, beacuse i run the offical example(sgx-ra-example) is well. thanks.

@j16r
Copy link
Author

j16r commented Jun 2, 2019 via email

@peterpauldewit
Copy link

peterpauldewit commented Jan 27, 2021

After looking in the included generated code, I came up with

message SecretMessage {
required uint32 type = 1;
required uint32 size = 2;
optional uint32 encryped_pkey_size = 3;
optional uint32 encryped_x509_size = 4;
repeated uint32 encrypted_content = 5 [packed = true];
repeated uint32 mac_smk = 6 [packed = true];
repeated uint32 encrypted_pkey = 7 [packed = true];
repeated uint32 encrypted_pkey_mac_smk = 8 [packed = true];
repeated uint32 encrypted_x509 = 9 [packed = true];
repeated uint32 encrypted_x509_mac_smk = 10 [packed = true];
}
As for certificates, intel remote attestation now works with API-keys and has the sigrl request has become a GET instead of a POST request (including this for future people using this repository). You'll still need a certificate for your own client-server communication tho.

@divyekalra1
Copy link

Gentle ping .. any update on this?

Still getting the following output when I run the ServiceProvider's Makefile using make :

service_provider/ecp.cpp:116:60: note: ‘#pragma message: Default key derivation function is used.’
 116 | #pragma message ("Default key derivation function is used.")
     |                                                            ^
CXX  <=  service_provider/ecp.cpp
CXX  <=  ../Util/LogBase.cpp
In file included from service_provider/ias_ra.cpp:1:
service_provider/ServiceProvider.h:64:42: error: ‘Message::SecretMessage’ has not been declared
  64 |     int sp_ra_proc_app_att_hmac(Message::SecretMessage *new_msg, string hmac_key, string hmac_key_filename);
     |                                          ^~~~~~~~~~~~~
make: *** [Makefile:138: service_provider/ias_ra.o] Error 1

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

Successfully merging a pull request may close this issue.

4 participants