Skip to content

Commit f86c6d4

Browse files
committed
wolfcrypt/src/aes.c, wolfcrypt/src/cmac.c, wolfssl/wolfcrypt/aes.h: optimizations to mitigate performance regressions from 299e7bd (#9783):
* add do_preFetches flag argument to AesEncrypt_C() and AesDecrypt_C(), and call PreFetchTe() and PreFetchSBox() only if do_preFetches is nonzero; * when C implementations are available, add do_preFetches arg to wc_AesEncrypt() and wc_AesDecrypt(), and pass it through; * in functions that directly call the AES block encryption methods, opportunistically inhibit prefetch on all but the first call; * move AES-specific code in wc_CmacUpdate() in cmac.c to wc_CmacUpdateAes() in aes.c to let it use conditional prefetching.
1 parent 6656695 commit f86c6d4

3 files changed

Lines changed: 232 additions & 71 deletions

File tree

0 commit comments

Comments
 (0)