X-Git-Url: https://www.flypig.org.uk/git/?a=blobdiff_plain;f=OpenCL%2Fkernel_serpent256.c;h=c8a1be85dcd25da2fadef56014a3ba9760d5aa1d;hb=0b3743ce943c055e4497ea387975cc37c82bd443;hp=8288980f90a1f7460c391cdaeb02c61fde952f74;hpb=c2976785362be3ad0b8167873a1151c181bd64c9;p=hashcat.git diff --git a/OpenCL/kernel_serpent256.c b/OpenCL/kernel_serpent256.c index 8288980..c8a1be8 100644 --- a/OpenCL/kernel_serpent256.c +++ b/OpenCL/kernel_serpent256.c @@ -401,7 +401,7 @@ c = rotr32(c, 3); \ a = rotr32(a, 13) -static void serpent256_set_key (u32 *ks, const u32 *ukey) +void serpent256_set_key (u32 *ks, const u32 *ukey) { #pragma unroll for (int i = 0; i < 8; i++) @@ -453,7 +453,7 @@ static void serpent256_set_key (u32 *ks, const u32 *ukey) k_set(32,a,b,c,d); sb3(a,b,c,d,e,f,g,h); k_get(32,e,f,g,h); } -static void serpent256_encrypt (const u32 *ks, const u32 *in, u32 *out) +void serpent256_encrypt (const u32 *ks, const u32 *in, u32 *out) { u32 a,b,c,d,e,f,g,h; u32 t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16; @@ -503,7 +503,7 @@ static void serpent256_encrypt (const u32 *ks, const u32 *in, u32 *out) out[3] = d; } -static void serpent256_decrypt (const u32 *ks, const u32 *in, u32 *out) +void serpent256_decrypt (const u32 *ks, const u32 *in, u32 *out) { u32 a,b,c,d,e,f,g,h; u32 t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16; @@ -553,7 +553,7 @@ static void serpent256_decrypt (const u32 *ks, const u32 *in, u32 *out) out[3] = d; } -static void serpent256_decrypt_xts (const u32 *ukey1, const u32 *ukey2, const u32 *in, u32 *out) +void serpent256_decrypt_xts (const u32 *ukey1, const u32 *ukey2, const u32 *in, u32 *out) { u32 T[4] = { 0 }; u32 Z[4] = { 0 };