Przeglądaj źródła

Entire LA works - setting ec_dh.cpp to original state.

dettanym 7 lat temu
rodzic
commit
6fe84ee784
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      sdk/ec_dh_lib/ec_dh.cpp

+ 4 - 4
sdk/ec_dh_lib/ec_dh.cpp

@@ -493,8 +493,8 @@ sgx_status_t sgx_dh_initiator_proc_msg1(const sgx_dh_msg1_t* msg1, sgx_dh_msg2_t
 {
     sgx_status_t se_ret;
 
-//    sgx_ec256_public_t pub_key;
-//    sgx_ec256_private_t priv_key;
+    sgx_ec256_public_t pub_key;
+    sgx_ec256_private_t priv_key;
     sgx_ec256_dh_shared_t shared_key;
     sgx_key_128bit_t dh_smk;
 
@@ -535,7 +535,7 @@ sgx_status_t sgx_dh_initiator_proc_msg1(const sgx_dh_msg1_t* msg1, sgx_dh_msg2_t
         goto error;
     }
 
-/*    // generate private key and public key
+    // generate private key and public key
     se_ret = sgx_ecc256_create_key_pair((sgx_ec256_private_t*)&priv_key, 
                                        (sgx_ec256_public_t*)&pub_key, 
                                         ecc_state);
@@ -589,7 +589,7 @@ sgx_status_t sgx_dh_initiator_proc_msg1(const sgx_dh_msg1_t* msg1, sgx_dh_msg2_t
     }
 
     session->initiator.state = SGX_DH_SESSION_INITIATOR_WAIT_M3;
-*/    return SGX_SUCCESS;
+    return SGX_SUCCESS;
 
 error:
     sgx_ecc256_close_context(ecc_state);