forked from wolfSSL/wolfssl
Fix for missing ret
in some wc_AesGcmEncrypt
functions due to refactor in commit 0765aa0
.
This commit is contained in:
@@ -7253,9 +7253,9 @@ int wc_AesGcmEncrypt(Aes* aes, byte* out, const byte* in, word32 sz,
|
|||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = wc_AesGetKeySize(aes, &keySize);
|
status = wc_AesGetKeySize(aes, &keySize);
|
||||||
if (ret != 0)
|
if (status)
|
||||||
return ret;
|
return status;
|
||||||
|
|
||||||
status = LTC_AES_EncryptTagGcm(LTC_BASE, in, out, sz, iv, ivSz,
|
status = LTC_AES_EncryptTagGcm(LTC_BASE, in, out, sz, iv, ivSz,
|
||||||
authIn, authInSz, (byte*)aes->key, keySize, authTag, authTagSz);
|
authIn, authInSz, (byte*)aes->key, keySize, authTag, authTagSz);
|
||||||
@@ -7270,6 +7270,7 @@ static INLINE int wc_AesGcmEncrypt_STM32(Aes* aes, byte* out, const byte* in,
|
|||||||
byte* authTag, word32 authTagSz,
|
byte* authTag, word32 authTagSz,
|
||||||
const byte* authIn, word32 authInSz)
|
const byte* authIn, word32 authInSz)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
word32 keySize;
|
word32 keySize;
|
||||||
byte initialCounter[AES_BLOCK_SIZE];
|
byte initialCounter[AES_BLOCK_SIZE];
|
||||||
#ifdef WOLFSSL_STM32_CUBEMX
|
#ifdef WOLFSSL_STM32_CUBEMX
|
||||||
@@ -7563,7 +7564,7 @@ int wc_AesGcmDecrypt(Aes* aes, byte* out, const byte* in, word32 sz,
|
|||||||
const byte* authTag, word32 authTagSz,
|
const byte* authTag, word32 authTagSz,
|
||||||
const byte* authIn, word32 authInSz)
|
const byte* authIn, word32 authInSz)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret;
|
||||||
word32 keySize;
|
word32 keySize;
|
||||||
status_t status;
|
status_t status;
|
||||||
|
|
||||||
@@ -7589,7 +7590,7 @@ int wc_AesGcmDecrypt(Aes* aes, byte* out, const byte* in, word32 sz,
|
|||||||
const byte* authTag, word32 authTagSz,
|
const byte* authTag, word32 authTagSz,
|
||||||
const byte* authIn, word32 authInSz)
|
const byte* authIn, word32 authInSz)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret;
|
||||||
word32 keySize;
|
word32 keySize;
|
||||||
#ifdef WOLFSSL_STM32_CUBEMX
|
#ifdef WOLFSSL_STM32_CUBEMX
|
||||||
CRYP_HandleTypeDef hcryp;
|
CRYP_HandleTypeDef hcryp;
|
||||||
|
Reference in New Issue
Block a user