Commit f86c6d4
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 f86c6d4
3 files changed
Lines changed: 232 additions & 71 deletions
0 commit comments