forked from wolfSSL/wolfssl
Fix to use accelerated AES GCM when auth is not 4-byte aligned on platforms supporting byte header size.
This commit is contained in:
@ -6991,7 +6991,7 @@ static int wc_AesGcmEncrypt_STM32(Aes* aes, byte* out, const byte* in, word32 sz
|
|||||||
/* or harware that does not support partial block */
|
/* or harware that does not support partial block */
|
||||||
|| sz == 0 || partial != 0
|
|| sz == 0 || partial != 0
|
||||||
#endif
|
#endif
|
||||||
#ifndef STM32_AESGCM_PARTIAL
|
#if !defined(CRYP_HEADERWIDTHUNIT_BYTE) && !defined(STM32_AESGCM_PARTIAL)
|
||||||
/* or authIn is not a multiple of 4 */
|
/* or authIn is not a multiple of 4 */
|
||||||
|| authPadSz != authInSz
|
|| authPadSz != authInSz
|
||||||
#endif
|
#endif
|
||||||
@ -7481,7 +7481,7 @@ static int wc_AesGcmDecrypt_STM32(Aes* aes, byte* out,
|
|||||||
/* or harware that does not support partial block */
|
/* or harware that does not support partial block */
|
||||||
|| sz == 0 || partial != 0
|
|| sz == 0 || partial != 0
|
||||||
#endif
|
#endif
|
||||||
#ifndef STM32_AESGCM_PARTIAL
|
#if !defined(CRYP_HEADERWIDTHUNIT_BYTE) && !defined(STM32_AESGCM_PARTIAL)
|
||||||
/* or authIn is not a multiple of 4 */
|
/* or authIn is not a multiple of 4 */
|
||||||
|| authPadSz != authInSz
|
|| authPadSz != authInSz
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user