diff --git a/OpenCL/inc_cipher_cast.h b/OpenCL/inc_cipher_cast.h index d27ac3d86..86e59c07d 100644 --- a/OpenCL/inc_cipher_cast.h +++ b/OpenCL/inc_cipher_cast.h @@ -586,15 +586,15 @@ CONSTANT_AS uint S[8][256] = { /* CAST uses three different round functions */ #define _CAST_f1(l, r, km, kr) \ - t = rotate(km + r, kr); \ + t = rotl32_S(km + r, kr); \ l ^= ((s_S[0][U8a(t)] ^ s_S[1][U8b(t)]) - \ s_S[2][U8c(t)]) + s_S[3][U8d(t)]; #define _CAST_f2(l, r, km, kr) \ - t = rotate(km ^ r, kr); \ + t = rotl32_S(km ^ r, kr); \ l ^= ((s_S[0][U8a(t)] - s_S[1][U8b(t)]) + \ s_S[2][U8c(t)]) ^ s_S[3][U8d(t)]; #define _CAST_f3(l, r, km, kr) \ - t = rotate(km - r, kr); \ + t = rotl32_S(km - r, kr); \ l ^= ((s_S[0][U8a(t)] + s_S[1][U8b(t)]) ^ \ s_S[2][U8c(t)]) - s_S[3][U8d(t)];