Fix CUDA with WOLFSSL_AES_SMALL_TABLES

This commit is contained in:
Eric Blankenhorn
2026-04-30 14:06:18 -05:00
parent d00a137de0
commit fdac63cd29
+3 -2
View File
@@ -670,7 +670,7 @@ __global__ void AesEncrypt_C_CUDA(word32* rkBase, const byte* inBlockBase, byte*
byte* outBlock = outBlockBase;
word32* rk;
for (int i = index; i < sz; i += stride) {
for (int i = idx; i < sz; i += stride) {
rk = rkBase;
inBlock = inBlockBase + i * 4 * sizeof(s0);
outBlock = outBlockBase + i * 4 * sizeof(s0);
@@ -842,7 +842,8 @@ __global__ void AesEncrypt_C_CUDA(word32* rkBase, const byte* inBlockBase, byte*
#endif
#else
#ifndef WC_NO_CACHE_RESISTANT
s0 |= PreFetchSBox();
PreFetchSBox(sBox);
s0 |= sBox;
#endif
r *= 2;