1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

Fixed gcc warnings

This commit is contained in:
Gabriele 'matrix' Gristina 2016-01-27 01:08:35 +01:00
parent acbdd81039
commit b7d3a7c5bc
3 changed files with 10 additions and 8 deletions

View File

@ -239,7 +239,7 @@ typedef struct
{
uint dgst32[16];
u64 dgst64[8];
};
} d;
uint dgst_len;
uint W_len;
@ -703,7 +703,7 @@ typedef struct
u8 hc1[1][256];
u32 hi1[1][ 64];
u64 hl1[1][ 32];
};
} h;
uint pw_len;
uint alignment_placeholder_1;

View File

@ -1881,7 +1881,7 @@ static void check_hash (hc_device_param_t *device_param, const uint salt_pos, co
for (int i = 0, j = gidm; i < 16; i++, j++)
{
plain_buf[i] = pw.hi1[0][j];
plain_buf[i] = pw.h.hi1[0][j];
}
plain_len = pw.pw_len;
@ -1930,7 +1930,7 @@ static void check_hash (hc_device_param_t *device_param, const uint salt_pos, co
for (int i = 0, j = gidm; i < 16; i++, j++)
{
plain_buf[i] = pw.hi1[0][j];
plain_buf[i] = pw.h.hi1[0][j];
}
plain_len = pw.pw_len;
@ -1991,7 +1991,7 @@ static void check_hash (hc_device_param_t *device_param, const uint salt_pos, co
for (int i = 0, j = gidm; i < 16; i++, j++)
{
plain_buf[i] = pw.hi1[0][j];
plain_buf[i] = pw.h.hi1[0][j];
}
plain_len = pw.pw_len;
@ -2025,7 +2025,7 @@ static void check_hash (hc_device_param_t *device_param, const uint salt_pos, co
for (int i = 0, j = gidm; i < 16; i++, j++)
{
plain_buf[i] = pw.hi1[0][j];
plain_buf[i] = pw.h.hi1[0][j];
}
plain_len = pw.pw_len;
@ -3339,7 +3339,7 @@ static u64 count_words (wl_data_t *wl_data, FILE *fd, char *dictfile, dictstat_t
static void pw_transpose_to_hi1 (const pw_t *p1, pw_t *p2)
{
memcpy (p2->hi1, p1->hi1, 64 * sizeof (uint));
memcpy (p2->h.hi1, p1->h.hi1, 64 * sizeof (uint));
}
static uint pw_add_to_hc1 (hc_device_param_t *device_param, const u8 *pw_buf, const uint pw_len)
@ -3350,7 +3350,7 @@ static uint pw_add_to_hc1 (hc_device_param_t *device_param, const u8 *pw_buf, co
uint cache_cnt = pw_cache->cnt;
u8 *pw_hc1 = pw_cache->pw_buf.hc1[cache_cnt];
u8 *pw_hc1 = pw_cache->pw_buf.h.hc1[cache_cnt];
memcpy (pw_hc1, pw_buf, pw_len);

View File

@ -1663,6 +1663,7 @@ static u32 rule_op_mangle_replace (const u32 p0, const u32 p1, u32 buf0[4], u32
return in_len;
}
/*
static u32 rule_op_mangle_purgechar (const u32 p0, const u32 p1, u32 buf0[4], u32 buf1[4], const u32 in_len)
{
// TODO
@ -1674,6 +1675,7 @@ static u32 rule_op_mangle_togglecase_rec (const u32 p0, const u32 p1, u32 buf0[4
// TODO
return in_len;
}
*/
static u32 rule_op_mangle_dupechar_first (const u32 p0, const u32 p1, u32 buf0[4], u32 buf1[4], const u32 in_len)
{