Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Feb 22, 2024
1 parent d08e9aa commit b451dfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions secure_enclave/secure_enclave.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ void trustedGetPublicEcdsaKey(int *errStatus, char *errString,

int status = AES_decrypt(encryptedPrivateKey, enc_len, skey, BUF_LEN,
&type, &exportable);
LOG_DEBUG("Decrypted ECDSA secret key");
LOG_DEBUG(skey);
CHECK_STATUS2("AES_decrypt failed with status %d");

skey[enc_len - SGX_AESGCM_MAC_SIZE - SGX_AESGCM_IV_SIZE] = '\0';
Expand Down

0 comments on commit b451dfe

Please sign in to comment.