1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-22 22:48:47 +00:00

Merge pull request #3999 from philsmd/whitespace_indentation_fix

fix whitespace/indentation
This commit is contained in:
hashcat-bot 2025-07-13 18:50:15 +02:00 committed by GitHub
commit cd71cb04d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 605 additions and 603 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,23 +2,23 @@
#define INC_CIPHER_CAST_H
// #include "opencl_misc.h"
#define GET_UINT32BE(n, b, i) \
{ \
(n) = ((uint) (b)[(i)] << 24) \
| ((uint) (b)[(i) + 1] << 16) \
| ((uint) (b)[(i) + 2] << 8) \
| ((uint) (b)[(i) + 3] ); \
}
#define PUT_UINT32BE(n, b, i) \
{ \
(b)[(i) ] = (u8) ((n) >> 24); \
(b)[(i) + 1] = (u8) ((n) >> 16); \
(b)[(i) + 2] = (u8) ((n) >> 8); \
(b)[(i) + 3] = (u8) ((n) ); \
}
#define GET_UINT32BE(n, b, i) \
{ \
(n) = ((uint) (b)[(i)] << 24) \
| ((uint) (b)[(i) + 1] << 16) \
| ((uint) (b)[(i) + 2] << 8) \
| ((uint) (b)[(i) + 3] ); \
}
#define PUT_UINT32BE(n, b, i) \
{ \
(b)[(i) ] = (u8) ((n) >> 24); \
(b)[(i) + 1] = (u8) ((n) >> 16); \
(b)[(i) + 2] = (u8) ((n) >> 8); \
(b)[(i) + 3] = (u8) ((n) ); \
}
typedef struct {
u32 K[32];
u32 K[32];
} CAST_KEY;
#define GETBYTE(x, y) (uint)(u8)((x)>>(8*(y)))

View File

@ -440,9 +440,9 @@ KERNEL_FQ KERNEL_FA void m31900_comp (KERN_ATTR_TMPS_ESALT (pbkdf2_sha512_tmp_t,
+ is_valid_printable_32 (pt_buf[2])
+ is_valid_printable_32 (pt_buf[3]);
if (correct_b1 != 4) return;
if (correct_b1 != 4) return;
// proceed with second block to further reduce false-positives
// proceed with second block to further reduce false-positives
AES256_decrypt (ks, ct_buf+4, pt_buf+4, s_td0, s_td1, s_td2, s_td3, s_td4);
@ -456,8 +456,8 @@ KERNEL_FQ KERNEL_FA void m31900_comp (KERN_ATTR_TMPS_ESALT (pbkdf2_sha512_tmp_t,
+ is_valid_printable_32 (pt_buf[6])
+ is_valid_printable_32 (pt_buf[7]);
if (correct_b2 != 4) return;
if (correct_b2 != 4) return;
const u32 r0 = ct_buf[0];
const u32 r1 = ct_buf[1];
const u32 r2 = ct_buf[2];

View File

@ -69,7 +69,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
hc_token_t token;
memset (&token, 0, sizeof (hc_token_t));
token.token_cnt = 2;
token.sep[0] = hashconfig->separator;

View File

@ -87,7 +87,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
hc_token_t token;
memset (&token, 0, sizeof (hc_token_t));
token.token_cnt = 4;
token.signatures_cnt = 1;