Skip to content

Commit

Permalink
SKALE-3151-cannot-decrypt-storage-key
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Aug 21, 2020
1 parent f96c1e7 commit f46249b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions secure_enclave/SIGNED_ENCLAVE_VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define SIGNED_ENCLAVE_VERSION "0"
21 changes: 20 additions & 1 deletion secure_enclave/secure_enclave.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "EnclaveConstants.h"
#include "EnclaveCommon.h"
#include "SIGNED_ENCLAVE_VERSION"


#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
Expand Down Expand Up @@ -128,7 +130,24 @@ void trustedEnclaveInit(uint32_t _logLevel) {

enclave_init();

LOG_INFO("Successfully inited enclave");
LOG_INFO("Successfully inited enclave. Signed enclave version:" SIGNED_ENCLAVE_VERSION );
#ifndef SGX_DEBUG
LOG_INFO("SECURITY WARNING: sgxwallet is running in INSECURE DEBUG MODE! NEVER USE IN PRODUCTION!");
#endif

#if SGX_DEBUG != 0
LOG_INFO("SECURITY WARNING: sgxwallet is running in INSECURE DEBUG MODE! NEVER USE IN PRODUCTION!");
#endif

#if SGX_MODE == SIM
LOG_INFO("SECURITY WARNING: sgxwallet is running in INSECURE SIMULATION MODE! NEVER USE IN PRODUCTION!");
#endif






}

void free_function(void *ptr, size_t sz) {
Expand Down

0 comments on commit f46249b

Please sign in to comment.