You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2020/01/15 14:34:15 UTC

[GitHub] [incubator-teaclave-sgx-sdk] renxingliang opened a new issue #198: How to get machine code related to machine hardware?

renxingliang opened a new issue #198: How to get machine code related to machine hardware?
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/198
 
 
   I want to get the unique machine code of the computer through the sdk interface. Someone told me to use rsgx_get_key, but I didn't find detailed documentation. When I tested with the following code, I found that the keys obtained each time were different. I hope to consult the sgx_key_request_t which is really normal after entering to obtain unique machine code.
   
   
       let key_request = sgx_key_request_t {
           key_name: SGX_KEYSELECT_SEAL,
           key_policy,
           isv_svn: report.body.isv_svn,
           reserved1: 0_u16,
           cpu_svn: report.body.cpu_svn,
           attribute_mask,
           key_id,
           misc_mask: TSEAL_DEFAULT_MISCMASK,
           config_svn: report.body.config_svn,
           reserved2: [0_u8; SGX_KEY_REQUEST_RESERVED2_BYTES],
       };
       let sgx_key = rsgx_get_key(&key_request).unwrap();
       println!("sgx_key = {:?}", sgx_key);

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave-sgx-sdk] volcano0dr commented on issue #198: How to get machine code related to machine hardware?

Posted by GitBox <gi...@apache.org>.
volcano0dr commented on issue #198: How to get machine code related to machine hardware?
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/198#issuecomment-574696344
 
 
   1. The rsgx_get_key function is used to get the sgx related key, not to get the machine code.
   2.  Whether the key_request.key_id change or not when the rsgx_get_key function is called each time?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave-sgx-sdk] renxingliang commented on issue #198: How to get machine code related to machine hardware?

Posted by GitBox <gi...@apache.org>.
renxingliang commented on issue #198: How to get machine code related to machine hardware?
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/198#issuecomment-574956736
 
 
   1.Each time the key is obtained, the id and return value are different.
   2.If rsgx_get_key is not the interface we want, is there any interface in sdk that can get machine code?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave-sgx-sdk] renxingliang closed issue #198: How to get machine code related to machine hardware?

Posted by GitBox <gi...@apache.org>.
renxingliang closed issue #198: How to get machine code related to machine hardware?
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/198
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave-sgx-sdk] volcano0dr commented on issue #198: How to get machine code related to machine hardware?

Posted by GitBox <gi...@apache.org>.
volcano0dr commented on issue #198: How to get machine code related to machine hardware?
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/198#issuecomment-574959983
 
 
   1. If key_id changes, the key obtained by calling rsgx_get_key will be different.
   2. There is no interface to get machine code in SDK.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org