|
@@ -141,7 +141,7 @@ int local_attestation_initiator(int port)
|
|
|
{
|
|
|
printf("Error in process_protobuf_dh_msg3: 0x%x", protobuf_sgx_ret); fflush(stdout); return protobuf_sgx_ret;
|
|
|
}
|
|
|
- memset(encrypted_hash,0, 32); memset(encrypted_tag, 0, 16);
|
|
|
+/* memset(encrypted_hash,0, 32); memset(encrypted_tag, 0, 16);
|
|
|
protobuf_sgx_ret=generate_encrypted_rsa_keypair_hash(encrypted_hash, encrypted_tag);
|
|
|
if(protobuf_sgx_ret==0)
|
|
|
{
|
|
@@ -151,11 +151,6 @@ int local_attestation_initiator(int port)
|
|
|
{
|
|
|
printf("Error in enc/dec of hash: 0x%x", protobuf_sgx_ret); fflush(stdout); return protobuf_sgx_ret;
|
|
|
}
|
|
|
-/* uint32_t count;
|
|
|
- for(count=0;count<32;count++)
|
|
|
- printf("0x%x ", hash_and_tag[count]);
|
|
|
- printf("\n");fflush(stdout);
|
|
|
-*/
|
|
|
|
|
|
|
|
|
post_la_bytes_written = write(decryptor_fd, encrypted_hash, 32);
|
|
@@ -167,6 +162,7 @@ int local_attestation_initiator(int port)
|
|
|
|
|
|
}
|
|
|
printf("Wrote the hash and the tag to the decryptor socket.\n"); fflush(stdout);
|
|
|
+*/
|
|
|
if(close(decryptor_fd)!= 0)
|
|
|
{
|
|
|
printf("Error in closing the socket connection.\n"); fflush(stdout); return 0xfd;
|