mirror of
https://github.com/hashcat/hashcat.git
synced 2025-06-27 18:32:36 +00:00
Explicity cast otp_offset
This commit is contained in:
parent
3869ce9246
commit
b657c75583
@ -60,7 +60,7 @@ __kernel void m18100_mxx (__global pw_t *pws, __constant const kernel_rule_t *ru
|
|||||||
sha1_hmac_final (&ctx);
|
sha1_hmac_final (&ctx);
|
||||||
|
|
||||||
// calculate the offset using the least 4 bits of the last byte of our hash
|
// 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
|
// initialize a buffer for the otp code
|
||||||
unsigned int otp_code = 0;
|
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);
|
sha1_hmac_final (&ctx);
|
||||||
|
|
||||||
// calculate the offset using the least 4 bits of the last byte of our hash
|
// 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
|
// initialize a buffer for the otp code
|
||||||
unsigned int otp_code = 0;
|
unsigned int otp_code = 0;
|
||||||
|
@ -83,7 +83,7 @@ __kernel void m18100_mxx (__global pw_t *pws, __global const kernel_rule_t *rule
|
|||||||
sha1_hmac_final (&ctx);
|
sha1_hmac_final (&ctx);
|
||||||
|
|
||||||
// calculate the offset using the least 4 bits of the last byte of our hash
|
// 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
|
// initialize a buffer for the otp code
|
||||||
unsigned int otp_code = 0;
|
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);
|
sha1_hmac_final (&ctx);
|
||||||
|
|
||||||
// calculate the offset using the least 4 bits of the last byte of our hash
|
// 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
|
// initialize a buffer for the otp code
|
||||||
unsigned int otp_code = 0;
|
unsigned int otp_code = 0;
|
||||||
|
@ -69,7 +69,7 @@ __kernel void m18100_mxx (__global pw_t *pws, __global const kernel_rule_t *rule
|
|||||||
sha1_hmac_final_vector (&ctx);
|
sha1_hmac_final_vector (&ctx);
|
||||||
|
|
||||||
// calculate the offset using the least 4 bits of the last byte of our hash
|
// 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
|
// initialize a buffer for the otp code
|
||||||
unsigned int otp_code = 0;
|
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);
|
sha1_hmac_final_vector (&ctx);
|
||||||
|
|
||||||
// calculate the offset using the least 4 bits of the last byte of our hash
|
// 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
|
// initialize a buffer for the otp code
|
||||||
unsigned int otp_code = 0;
|
unsigned int otp_code = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user