From f924ee801be1d0a310f21ea104f44eb62b55c2aa Mon Sep 17 00:00:00 2001 From: jsteube Date: Sun, 23 Jul 2023 06:37:00 +0000 Subject: [PATCH] Update inc_cipher_cast.h to make use of hashcat multi-platform compatible rotl32_S() instead of rotate() --- OpenCL/inc_cipher_cast.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)];