From 7904b9ae059bc0bad0c4aca5083684e0ce28f823 Mon Sep 17 00:00:00 2001 From: unix-ninja Date: Fri, 19 Oct 2018 07:56:51 -0400 Subject: [PATCH] Fix kernel types to align with style guide --- OpenCL/m18100_a0-pure.cl | 8 ++++---- OpenCL/m18100_a1-pure.cl | 8 ++++---- OpenCL/m18100_a3-pure.cl | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/OpenCL/m18100_a0-pure.cl b/OpenCL/m18100_a0-pure.cl index 7903b9cb3..420c6f9c4 100644 --- a/OpenCL/m18100_a0-pure.cl +++ b/OpenCL/m18100_a0-pure.cl @@ -60,10 +60,10 @@ __kernel void m18100_mxx (__global pw_t *pws, __constant const kernel_rule_t *ru sha1_hmac_final (&ctx); // calculate the offset using the least 4 bits of the last byte of our hash - const int otp_offset = (int) ctx.opad.h[4] & 0xf; + const u32x otp_offset = ctx.opad.h[4] & 0xf; // initialize a buffer for the otp code - unsigned int otp_code = 0; + u32 otp_code = 0; // grab 4 consecutive bytes of the hash, starting at offset // on some systems, &3 is faster than %4, so we will use it in our switch() @@ -153,10 +153,10 @@ __kernel void m18100_sxx (__global pw_t *pws, __constant const kernel_rule_t *ru sha1_hmac_final (&ctx); // calculate the offset using the least 4 bits of the last byte of our hash - const int otp_offset = (int) ctx.opad.h[4] & 0xf; + const u32x otp_offset = ctx.opad.h[4] & 0xf; // initialize a buffer for the otp code - unsigned int otp_code = 0; + u32 otp_code = 0; // grab 4 consecutive bytes of the hash, starting at offset // on some systems, &3 is faster than %4, so we will use it in our switch() diff --git a/OpenCL/m18100_a1-pure.cl b/OpenCL/m18100_a1-pure.cl index d03f1a459..b58389975 100644 --- a/OpenCL/m18100_a1-pure.cl +++ b/OpenCL/m18100_a1-pure.cl @@ -83,10 +83,10 @@ __kernel void m18100_mxx (__global pw_t *pws, __global const kernel_rule_t *rule sha1_hmac_final (&ctx); // calculate the offset using the least 4 bits of the last byte of our hash - const int otp_offset = (int) ctx.opad.h[4] & 0xf; + const u32x otp_offset = ctx.opad.h[4] & 0xf; // initialize a buffer for the otp code - unsigned int otp_code = 0; + u32 otp_code = 0; // grab 4 consecutive bytes of the hash, starting at offset // on some systems, &3 is faster than %4, so we will use it in our switch() @@ -201,10 +201,10 @@ __kernel void m18100_sxx (__global pw_t *pws, __global const kernel_rule_t *rule sha1_hmac_final (&ctx); // calculate the offset using the least 4 bits of the last byte of our hash - const int otp_offset = (int) ctx.opad.h[4] & 0xf; + const u32x otp_offset = ctx.opad.h[4] & 0xf; // initialize a buffer for the otp code - unsigned int otp_code = 0; + u32 otp_code = 0; // grab 4 consecutive bytes of the hash, starting at offset // on some systems, &3 is faster than %4, so we will use it in our switch() diff --git a/OpenCL/m18100_a3-pure.cl b/OpenCL/m18100_a3-pure.cl index dcba543b5..15e32de93 100644 --- a/OpenCL/m18100_a3-pure.cl +++ b/OpenCL/m18100_a3-pure.cl @@ -69,10 +69,10 @@ __kernel void m18100_mxx (__global pw_t *pws, __global const kernel_rule_t *rule sha1_hmac_final_vector (&ctx); // calculate the offset using the least 4 bits of the last byte of our hash - const int otp_offset = (int) ctx.opad.h[4] & 0xf; + const u32x otp_offset = ctx.opad.h[4] & 0xf; // initialize a buffer for the otp code - unsigned int otp_code = 0; + u32 otp_code = 0; // grab 4 consecutive bytes of the hash, starting at offset // on some systems, &3 is faster than %4, so we will use it in our switch() @@ -173,10 +173,10 @@ __kernel void m18100_sxx (__global pw_t *pws, __global const kernel_rule_t *rule sha1_hmac_final_vector (&ctx); // calculate the offset using the least 4 bits of the last byte of our hash - const int otp_offset = (int) ctx.opad.h[4] & 0xf; + const u32x otp_offset = ctx.opad.h[4] & 0xf; // initialize a buffer for the otp code - unsigned int otp_code = 0; + u32 otp_code = 0; // grab 4 consecutive bytes of the hash, starting at offset // on some systems, &3 is faster than %4, so we will use it in our switch()