1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-11 00:01:16 +00:00

Explicity cast otp_offset

This commit is contained in:
unix-ninja 2018-10-18 09:36:57 -04:00
parent 3869ce9246
commit b657c75583
3 changed files with 6 additions and 6 deletions

View File

@ -60,7 +60,7 @@ __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 = ctx.opad.h[4] & 0xf;
const int otp_offset = (int) ctx.opad.h[4] & 0xf;
// initialize a buffer for the otp code
unsigned int otp_code = 0;
@ -153,7 +153,7 @@ __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 = ctx.opad.h[4] & 0xf;
const int otp_offset = (int) ctx.opad.h[4] & 0xf;
// initialize a buffer for the otp code
unsigned int otp_code = 0;

View File

@ -83,7 +83,7 @@ __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 = ctx.opad.h[4] & 0xf;
const int otp_offset = (int) ctx.opad.h[4] & 0xf;
// initialize a buffer for the otp code
unsigned int otp_code = 0;
@ -201,7 +201,7 @@ __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 = ctx.opad.h[4] & 0xf;
const int otp_offset = (int) ctx.opad.h[4] & 0xf;
// initialize a buffer for the otp code
unsigned int otp_code = 0;

View File

@ -69,7 +69,7 @@ __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 = ctx.opad.h[4] & 0xf;
const int otp_offset = (int) ctx.opad.h[4] & 0xf;
// initialize a buffer for the otp code
unsigned int otp_code = 0;
@ -173,7 +173,7 @@ __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 = ctx.opad.h[4] & 0xf;
const int otp_offset = (int) ctx.opad.h[4] & 0xf;
// initialize a buffer for the otp code
unsigned int otp_code = 0;