|
@@ -37,6 +37,8 @@ class Mitigator : public Php::Base
|
|
|
|
|
|
static void local_attestation_initiator_wrapper()
|
|
|
{
|
|
|
+ printf("Hello.\n"); fflush(stdout);
|
|
|
+
|
|
|
setbuf(stdout,NULL); uint32_t count;
|
|
|
uint32_t return_sgx;
|
|
|
unsigned char* base64_encoded_mitigator_header_and_value = (unsigned char*) malloc(mitigator_pubkey_header.length()+1+216);
|
|
@@ -56,12 +58,13 @@ class Mitigator : public Php::Base
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- printf("\nSuccessful LA with port %d.\n", DECRYPTOR_PORT);
|
|
|
- fflush(stdout);
|
|
|
- local_attestation_successful=1;
|
|
|
- printf("length of string was %d\n", mitigator_pubkey_header.length()); fflush(stdout);
|
|
|
- mitigator_pubkey_header_value=std::string((char*)base64_encoded_mitigator_header_and_value,mitigator_pubkey_header.length()+216);
|
|
|
+ printf("\nSuccessful LA with port %d.\n", DECRYPTOR_PORT);
|
|
|
+ fflush(stdout);
|
|
|
+ local_attestation_successful=1;
|
|
|
+ printf("length of string was %d\n", mitigator_pubkey_header.length()); fflush(stdout);
|
|
|
+ mitigator_pubkey_header_value=std::string((char*)base64_encoded_mitigator_header_and_value,mitigator_pubkey_header.length()+216);
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -75,6 +78,7 @@ class Mitigator : public Php::Base
|
|
|
|
|
|
static Php::Value php_decrypt_wrapper(Php::Parameters ¶ms )
|
|
|
{
|
|
|
+
|
|
|
int counter;
|
|
|
unsigned char* plaintext_user_data;
|
|
|
unsigned char* ciphertext_user_data;
|
|
@@ -113,7 +117,8 @@ class Mitigator : public Php::Base
|
|
|
|
|
|
std::string plaintext_user_data_str = std::string((char*) plaintext_user_data, plaintext_length);
|
|
|
|
|
|
- return plaintext_user_data_str;
|
|
|
+ */
|
|
|
+ return "Miti";
|
|
|
}
|
|
|
|
|
|
};
|