Skip to content

Commit c9928fc

Browse files
Merge pull request #412 from skalenetwork/beta-to-develop
Beta to develop
2 parents 7573cd5 + ec02225 commit c9928fc

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.0
1+
1.9.0

secure_enclave/AESUtils.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ int AES_decrypt(uint8_t *encrMessage, uint64_t length, char *message, uint64_t m
107107
return -4;
108108
}
109109

110+
if (length < SGX_AESGCM_MAC_SIZE + SGX_AESGCM_IV_SIZE) {
111+
LOG_ERROR("length < SGX_AESGCM_MAC_SIZE - SGX_AESGCM_IV_SIZE");
112+
return -5;
113+
}
110114

111115
if (length < SGX_AESGCM_MAC_SIZE + SGX_AESGCM_IV_SIZE) {
112116
LOG_ERROR("length < SGX_AESGCM_MAC_SIZE - SGX_AESGCM_IV_SIZE");

secure_enclave/secure_enclave.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,6 @@ void trustedEcdsaSign(int *errStatus, char *errString, uint8_t *encryptedPrivate
600600

601601
void trustedDecryptKey(int *errStatus, char *errString, uint8_t *encryptedPrivateKey,
602602
uint64_t enc_len, char *key) {
603-
604603
LOG_DEBUG(__FUNCTION__);
605604
INIT_ERROR_STATE
606605

0 commit comments

Comments
 (0)