Skip to content

Commit

Permalink
Merge pull request #412 from skalenetwork/beta-to-develop
Browse files Browse the repository at this point in the history
Beta to develop
  • Loading branch information
DmytroNazarenko authored Mar 23, 2023
2 parents 7573cd5 + ec02225 commit c9928fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.0
1.9.0
4 changes: 4 additions & 0 deletions secure_enclave/AESUtils.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ int AES_decrypt(uint8_t *encrMessage, uint64_t length, char *message, uint64_t m
return -4;
}

if (length < SGX_AESGCM_MAC_SIZE + SGX_AESGCM_IV_SIZE) {
LOG_ERROR("length < SGX_AESGCM_MAC_SIZE - SGX_AESGCM_IV_SIZE");
return -5;
}

if (length < SGX_AESGCM_MAC_SIZE + SGX_AESGCM_IV_SIZE) {
LOG_ERROR("length < SGX_AESGCM_MAC_SIZE - SGX_AESGCM_IV_SIZE");
Expand Down
1 change: 0 additions & 1 deletion secure_enclave/secure_enclave.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,6 @@ void trustedEcdsaSign(int *errStatus, char *errString, uint8_t *encryptedPrivate

void trustedDecryptKey(int *errStatus, char *errString, uint8_t *encryptedPrivateKey,
uint64_t enc_len, char *key) {

LOG_DEBUG(__FUNCTION__);
INIT_ERROR_STATE

Expand Down

0 comments on commit c9928fc

Please sign in to comment.