Commit 602d92f
committed
* 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 602d92f
3 files changed
Lines changed: 229 additions & 64 deletions
0 commit comments