mirror of
https://github.com/hashcat/hashcat.git
synced 2025-07-08 15:48:15 +00:00
Fix function declaration in -m 27800 kernel and some typos in MurMur based modules
This commit is contained in:
parent
89cd5bd78b
commit
518ddeb53a
@ -15,7 +15,7 @@
|
|||||||
#include "inc_simd.cl"
|
#include "inc_simd.cl"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
inline u32 Murmur32_Scramble(u32 k)
|
DECLSPEC u32 Murmur32_Scramble(u32 k)
|
||||||
{
|
{
|
||||||
k = (k * 0x16A88000) | ((k * 0xCC9E2D51) >> 17);
|
k = (k * 0x16A88000) | ((k * 0xCC9E2D51) >> 17);
|
||||||
return (k * 0x1B873593);
|
return (k * 0x1B873593);
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include "inc_simd.cl"
|
#include "inc_simd.cl"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
inline u32 Murmur32_Scramble(u32 k)
|
DECLSPEC u32 Murmur32_Scramble(u32 k)
|
||||||
{
|
{
|
||||||
k = (k * 0x16A88000) | ((k * 0xCC9E2D51) >> 17);
|
k = (k * 0x16A88000) | ((k * 0xCC9E2D51) >> 17);
|
||||||
return (k * 0x1B873593);
|
return (k * 0x1B873593);
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include "inc_simd.cl"
|
#include "inc_simd.cl"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
inline u32x Murmur32_Scramble(u32x k)
|
DECLSPEC u32x Murmur32_Scramble(u32x k)
|
||||||
{
|
{
|
||||||
k = (k * 0x16A88000) | ((k * 0xCC9E2D51) >> 17);
|
k = (k * 0x16A88000) | ((k * 0xCC9E2D51) >> 17);
|
||||||
return (k * 0x1B873593);
|
return (k * 0x1B873593);
|
||||||
|
@ -43,16 +43,16 @@ const char *module_st_pass (MAYBE_UNUSED const hashconfig_t *hashconfig,
|
|||||||
|
|
||||||
u32 module_salt_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
u32 module_salt_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
||||||
{
|
{
|
||||||
const u32 pw_max = 4;
|
const u32 salt_max = 4;
|
||||||
|
|
||||||
return pw_max;
|
return salt_max;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 module_salt_min (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
u32 module_salt_min (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
||||||
{
|
{
|
||||||
const u32 pw_min = 4;
|
const u32 salt_min = 4;
|
||||||
|
|
||||||
return pw_min;
|
return salt_min;
|
||||||
}
|
}
|
||||||
|
|
||||||
int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED void *digest_buf, MAYBE_UNUSED salt_t *salt, MAYBE_UNUSED void *esalt_buf, MAYBE_UNUSED void *hook_salt_buf, MAYBE_UNUSED hashinfo_t *hash_info, const char *line_buf, MAYBE_UNUSED const int line_len)
|
int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED void *digest_buf, MAYBE_UNUSED salt_t *salt, MAYBE_UNUSED void *esalt_buf, MAYBE_UNUSED void *hook_salt_buf, MAYBE_UNUSED hashinfo_t *hash_info, const char *line_buf, MAYBE_UNUSED const int line_len)
|
||||||
|
@ -43,16 +43,16 @@ const char *module_st_pass (MAYBE_UNUSED const hashconfig_t *hashconfig,
|
|||||||
|
|
||||||
u32 module_salt_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
u32 module_salt_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
||||||
{
|
{
|
||||||
const u32 pw_max = 4;
|
const u32 salt_max = 4;
|
||||||
|
|
||||||
return pw_max;
|
return salt_max;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 module_salt_min (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
u32 module_salt_min (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
||||||
{
|
{
|
||||||
const u32 pw_min = 4;
|
const u32 salt_min = 4;
|
||||||
|
|
||||||
return pw_min;
|
return salt_min;
|
||||||
}
|
}
|
||||||
|
|
||||||
int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED void *digest_buf, MAYBE_UNUSED salt_t *salt, MAYBE_UNUSED void *esalt_buf, MAYBE_UNUSED void *hook_salt_buf, MAYBE_UNUSED hashinfo_t *hash_info, const char *line_buf, MAYBE_UNUSED const int line_len)
|
int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED void *digest_buf, MAYBE_UNUSED salt_t *salt, MAYBE_UNUSED void *esalt_buf, MAYBE_UNUSED void *hook_salt_buf, MAYBE_UNUSED hashinfo_t *hash_info, const char *line_buf, MAYBE_UNUSED const int line_len)
|
||||||
|
Loading…
Reference in New Issue
Block a user