diff --git a/OpenCL/m06213.cl b/OpenCL/m06213.cl index 5c7f9f6b6..58e55d9cf 100644 --- a/OpenCL/m06213.cl +++ b/OpenCL/m06213.cl @@ -15,7 +15,7 @@ #include "inc_cipher_twofish256.cl" #include "inc_cipher_serpent256.cl" -void ripemd160_transform (const u32 w[16], u32 dgst[5]) +static void ripemd160_transform (const u32 w[16], u32 dgst[5]) { u32 a1 = dgst[0]; u32 b1 = dgst[1]; @@ -212,7 +212,7 @@ void ripemd160_transform (const u32 w[16], u32 dgst[5]) dgst[4] = e; } -void hmac_run2 (const u32 w1[16], const u32 w2[16], const u32 ipad[5], const u32 opad[5], u32 dgst[5]) +static void hmac_run2 (const u32 w1[16], const u32 w2[16], const u32 ipad[5], const u32 opad[5], u32 dgst[5]) { dgst[0] = ipad[0]; dgst[1] = ipad[1]; @@ -251,7 +251,7 @@ void hmac_run2 (const u32 w1[16], const u32 w2[16], const u32 ipad[5], const u32 ripemd160_transform (w, dgst); } -void hmac_run (u32 w[16], const u32 ipad[5], const u32 opad[5], u32 dgst[5]) +static void hmac_run (u32 w[16], const u32 ipad[5], const u32 opad[5], u32 dgst[5]) { dgst[0] = ipad[0]; dgst[1] = ipad[1]; @@ -287,7 +287,7 @@ void hmac_run (u32 w[16], const u32 ipad[5], const u32 opad[5], u32 dgst[5]) ripemd160_transform (w, dgst); } -void hmac_init (u32 w[16], u32 ipad[5], u32 opad[5]) +static void hmac_init (u32 w[16], u32 ipad[5], u32 opad[5]) { w[ 0] ^= 0x36363636; w[ 1] ^= 0x36363636; @@ -340,7 +340,7 @@ void hmac_init (u32 w[16], u32 ipad[5], u32 opad[5]) ripemd160_transform (w, opad); } -u32 u8add (const u32 a, const u32 b) +static u32 u8add (const u32 a, const u32 b) { const u32 a1 = (a >> 0) & 0xff; const u32 a2 = (a >> 8) & 0xff;