mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 17:40:50 +02:00
wolfcrypt/src/aes.c: add _TI_CRYPT and _RISCV_ASM fallthrough definitions for Aes{En,de}crypt_preFetchOpt.
This commit is contained in:
+14
-1
@@ -91,6 +91,11 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits
|
||||
|
||||
#if defined(WOLFSSL_TI_CRYPT)
|
||||
#include <wolfcrypt/src/port/ti/ti-aes.c>
|
||||
|
||||
#define AesEncrypt_preFetchOpt(aes, inBlock, outBlock, do_preFetch) \
|
||||
wc_AesEncryptDirect(aes, outBlock, inBlock)
|
||||
#define AesDecrypt_preFetchOpt(aes, inBlock, outBlock, do_preFetch) \
|
||||
wc_AesDecryptDirect(aes, outBlock, inBlock)
|
||||
#else
|
||||
|
||||
|
||||
@@ -7279,7 +7284,6 @@ int wc_AesCbcEncrypt(Aes* aes, byte* out, const byte* in, word32 sz)
|
||||
#endif /* NEED_AES_CTR_SOFT */
|
||||
|
||||
#endif /* WOLFSSL_AES_COUNTER */
|
||||
#endif /* !WOLFSSL_RISCV_ASM */
|
||||
|
||||
#ifndef WC_AES_HAVE_PREFETCH_ARG
|
||||
#ifndef AesEncrypt_preFetchOpt
|
||||
@@ -7292,6 +7296,15 @@ int wc_AesCbcEncrypt(Aes* aes, byte* out, const byte* in, word32 sz)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#else /* WOLFSSL_RISCV_ASM */
|
||||
|
||||
#define AesEncrypt_preFetchOpt(aes, inBlock, outBlock, do_preFetch) \
|
||||
wc_AesEncryptDirect(aes, outBlock, inBlock)
|
||||
#define AesDecrypt_preFetchOpt(aes, inBlock, outBlock, do_preFetch) \
|
||||
wc_AesDecryptDirect(aes, outBlock, inBlock)
|
||||
|
||||
#endif /* WOLFSSL_RISCV_ASM */
|
||||
|
||||
/*
|
||||
* The IV for AES GCM and CCM, stored in struct Aes's member reg, is comprised
|
||||
* of two parts in order:
|
||||
|
||||
Reference in New Issue
Block a user