|
@@ -161,9 +161,9 @@ static int check_child_mrenclave (sgx_arch_hash_t * mrenclave,
|
|
|
memset(&check_data, 0, sizeof(struct proc_attestation_data));
|
|
|
|
|
|
lib_AESCMAC((void *) ¶m->mac_key, AES_CMAC_KEY_LEN,
|
|
|
- remote_state->enclave_keyhash,
|
|
|
- sizeof(remote_state->enclave_keyhash),
|
|
|
- check_data.keyhash_mac, sizeof check_data.keyhash_mac);
|
|
|
+ remote_state->enclave_identifier,
|
|
|
+ sizeof(remote_state->enclave_identifier),
|
|
|
+ check_data.keyhash_mac, sizeof(check_data.keyhash_mac));
|
|
|
|
|
|
if (memcmp(data, &check_data, sizeof(struct proc_attestation_data)))
|
|
|
return 1;
|
|
@@ -232,9 +232,9 @@ int _DkProcessCreate (PAL_HANDLE * handle, const char * uri,
|
|
|
memset(&data, 0, sizeof(struct proc_attestation_data));
|
|
|
|
|
|
lib_AESCMAC((void *) ¶m.mac_key, AES_CMAC_KEY_LEN,
|
|
|
- pal_enclave_state.enclave_keyhash,
|
|
|
- sizeof(pal_enclave_state.enclave_keyhash),
|
|
|
- data.keyhash_mac, sizeof data.keyhash_mac);
|
|
|
+ pal_enclave_state.enclave_identifier,
|
|
|
+ sizeof(pal_enclave_state.enclave_identifier),
|
|
|
+ data.keyhash_mac, sizeof(data.keyhash_mac));
|
|
|
|
|
|
SGX_DBG(DBG_P|DBG_S, "Attestation data: %s\n",
|
|
|
alloca_bytes2hexstr(data.keyhash_mac));
|
|
@@ -266,9 +266,9 @@ static int check_parent_mrenclave (sgx_arch_hash_t * mrenclave,
|
|
|
memset(&check_data, 0, sizeof(struct proc_attestation_data));
|
|
|
|
|
|
lib_AESCMAC((void *) ¶m->mac_key, AES_CMAC_KEY_LEN,
|
|
|
- remote_state->enclave_keyhash,
|
|
|
- sizeof(remote_state->enclave_keyhash),
|
|
|
- check_data.keyhash_mac, sizeof check_data.keyhash_mac);
|
|
|
+ remote_state->enclave_identifier,
|
|
|
+ sizeof(remote_state->enclave_identifier),
|
|
|
+ check_data.keyhash_mac, sizeof(check_data.keyhash_mac));
|
|
|
|
|
|
if (memcmp(data, &check_data, sizeof(struct proc_attestation_data)))
|
|
|
return 1;
|
|
@@ -302,9 +302,9 @@ int init_child_process (PAL_HANDLE * parent_handle)
|
|
|
memset(&data, 0, sizeof(struct proc_attestation_data));
|
|
|
|
|
|
lib_AESCMAC((void *) ¶m.mac_key, AES_CMAC_KEY_LEN,
|
|
|
- pal_enclave_state.enclave_keyhash,
|
|
|
- sizeof(pal_enclave_state.enclave_keyhash),
|
|
|
- data.keyhash_mac, sizeof data.keyhash_mac);
|
|
|
+ pal_enclave_state.enclave_identifier,
|
|
|
+ sizeof(pal_enclave_state.enclave_identifier),
|
|
|
+ data.keyhash_mac, sizeof(data.keyhash_mac));
|
|
|
|
|
|
SGX_DBG(DBG_P|DBG_S, "Attestation data: %s\n",
|
|
|
alloca_bytes2hexstr(data.keyhash_mac));
|