1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 01:50:10 +00:00

Rename SM3 module : m31100

This commit is contained in:
Zgzorx 2023-02-20 14:41:22 +01:00
parent c85d817192
commit 20c6a70b59
7 changed files with 33 additions and 33 deletions

View File

@ -16,7 +16,7 @@
#include M2S(INCLUDE_PATH/inc_hash_sm3.cl) #include M2S(INCLUDE_PATH/inc_hash_sm3.cl)
#endif #endif
KERNEL_FQ void m36000_m04 (KERN_ATTR_RULES ()) KERNEL_FQ void m31100_m04 (KERN_ATTR_RULES ())
{ {
/** /**
* modifier * modifier
@ -163,15 +163,15 @@ KERNEL_FQ void m36000_m04 (KERN_ATTR_RULES ())
} }
} }
KERNEL_FQ void m36000_m08 (KERN_ATTR_RULES ()) KERNEL_FQ void m31100_m08 (KERN_ATTR_RULES ())
{ {
} }
KERNEL_FQ void m36000_m16 (KERN_ATTR_RULES ()) KERNEL_FQ void m31100_m16 (KERN_ATTR_RULES ())
{ {
} }
KERNEL_FQ void m36000_s04 (KERN_ATTR_RULES ()) KERNEL_FQ void m31100_s04 (KERN_ATTR_RULES ())
{ {
/** /**
* modifier * modifier
@ -330,10 +330,10 @@ KERNEL_FQ void m36000_s04 (KERN_ATTR_RULES ())
} }
} }
KERNEL_FQ void m36000_s08 (KERN_ATTR_RULES ()) KERNEL_FQ void m31100_s08 (KERN_ATTR_RULES ())
{ {
} }
KERNEL_FQ void m36000_s16 (KERN_ATTR_RULES ()) KERNEL_FQ void m31100_s16 (KERN_ATTR_RULES ())
{ {
} }

View File

@ -16,7 +16,7 @@
#include M2S(INCLUDE_PATH/inc_hash_sm3.cl) #include M2S(INCLUDE_PATH/inc_hash_sm3.cl)
#endif #endif
KERNEL_FQ void m36000_mxx (KERN_ATTR_RULES ()) KERNEL_FQ void m31100_mxx (KERN_ATTR_RULES ())
{ {
/** /**
* modifier * modifier
@ -60,7 +60,7 @@ KERNEL_FQ void m36000_mxx (KERN_ATTR_RULES ())
} }
} }
KERNEL_FQ void m36000_sxx (KERN_ATTR_RULES ()) KERNEL_FQ void m31100_sxx (KERN_ATTR_RULES ())
{ {
/** /**
* modifier * modifier

View File

@ -14,7 +14,7 @@
#include M2S(INCLUDE_PATH/inc_hash_sm3.cl) #include M2S(INCLUDE_PATH/inc_hash_sm3.cl)
#endif #endif
KERNEL_FQ void m36000_m04 (KERN_ATTR_BASIC ()) KERNEL_FQ void m31100_m04 (KERN_ATTR_BASIC ())
{ {
/** /**
* modifier * modifier
@ -219,15 +219,15 @@ KERNEL_FQ void m36000_m04 (KERN_ATTR_BASIC ())
} }
} }
KERNEL_FQ void m36000_m08 (KERN_ATTR_BASIC ()) KERNEL_FQ void m31100_m08 (KERN_ATTR_BASIC ())
{ {
} }
KERNEL_FQ void m36000_m16 (KERN_ATTR_BASIC ()) KERNEL_FQ void m31100_m16 (KERN_ATTR_BASIC ())
{ {
} }
KERNEL_FQ void m36000_s04 (KERN_ATTR_BASIC ()) KERNEL_FQ void m31100_s04 (KERN_ATTR_BASIC ())
{ {
/** /**
* modifier * modifier
@ -444,10 +444,10 @@ KERNEL_FQ void m36000_s04 (KERN_ATTR_BASIC ())
} }
} }
KERNEL_FQ void m36000_s08 (KERN_ATTR_BASIC ()) KERNEL_FQ void m31100_s08 (KERN_ATTR_BASIC ())
{ {
} }
KERNEL_FQ void m36000_s16 (KERN_ATTR_BASIC ()) KERNEL_FQ void m31100_s16 (KERN_ATTR_BASIC ())
{ {
} }

View File

@ -14,7 +14,7 @@
#include M2S(INCLUDE_PATH/inc_hash_sm3.cl) #include M2S(INCLUDE_PATH/inc_hash_sm3.cl)
#endif #endif
KERNEL_FQ void m36000_mxx (KERN_ATTR_BASIC ()) KERNEL_FQ void m31100_mxx (KERN_ATTR_BASIC ())
{ {
/** /**
* modifier * modifier
@ -56,7 +56,7 @@ KERNEL_FQ void m36000_mxx (KERN_ATTR_BASIC ())
} }
} }
KERNEL_FQ void m36000_sxx (KERN_ATTR_BASIC ()) KERNEL_FQ void m31100_sxx (KERN_ATTR_BASIC ())
{ {
/** /**
* modifier * modifier

View File

@ -14,7 +14,7 @@
#include M2S(INCLUDE_PATH/inc_hash_sm3.cl) #include M2S(INCLUDE_PATH/inc_hash_sm3.cl)
#endif #endif
DECLSPEC void m36000m (PRIVATE_AS u32 *w, const u32 pw_len, KERN_ATTR_FUNC_VECTOR ()) DECLSPEC void m31100m (PRIVATE_AS u32 *w, const u32 pw_len, KERN_ATTR_FUNC_VECTOR ())
{ {
/** /**
* modifiers are taken from args * modifiers are taken from args
@ -130,7 +130,7 @@ DECLSPEC void m36000m (PRIVATE_AS u32 *w, const u32 pw_len, KERN_ATTR_FUNC_VECTO
} }
} }
DECLSPEC void m36000s (PRIVATE_AS u32 *w, const u32 pw_len, KERN_ATTR_FUNC_VECTOR ()) DECLSPEC void m31100s (PRIVATE_AS u32 *w, const u32 pw_len, KERN_ATTR_FUNC_VECTOR ())
{ {
/** /**
* modifiers are taken from args * modifiers are taken from args
@ -258,7 +258,7 @@ DECLSPEC void m36000s (PRIVATE_AS u32 *w, const u32 pw_len, KERN_ATTR_FUNC_VECTO
} }
} }
KERNEL_FQ void m36000_m04 (KERN_ATTR_VECTOR ()) KERNEL_FQ void m31100_m04 (KERN_ATTR_VECTOR ())
{ {
/** /**
* base * base
@ -295,10 +295,10 @@ KERNEL_FQ void m36000_m04 (KERN_ATTR_VECTOR ())
* main * main
*/ */
m36000m (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz); m31100m (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz);
} }
KERNEL_FQ void m36000_m08 (KERN_ATTR_VECTOR ()) KERNEL_FQ void m31100_m08 (KERN_ATTR_VECTOR ())
{ {
/** /**
* base * base
@ -335,10 +335,10 @@ KERNEL_FQ void m36000_m08 (KERN_ATTR_VECTOR ())
* main * main
*/ */
m36000m (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz); m31100m (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz);
} }
KERNEL_FQ void m36000_m16 (KERN_ATTR_VECTOR ()) KERNEL_FQ void m31100_m16 (KERN_ATTR_VECTOR ())
{ {
/** /**
* base * base
@ -375,10 +375,10 @@ KERNEL_FQ void m36000_m16 (KERN_ATTR_VECTOR ())
* main * main
*/ */
m36000m (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz); m31100m (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz);
} }
KERNEL_FQ void m36000_s04 (KERN_ATTR_VECTOR ()) KERNEL_FQ void m31100_s04 (KERN_ATTR_VECTOR ())
{ {
/** /**
* base * base
@ -415,10 +415,10 @@ KERNEL_FQ void m36000_s04 (KERN_ATTR_VECTOR ())
* main * main
*/ */
m36000s (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz); m31100s (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz);
} }
KERNEL_FQ void m36000_s08 (KERN_ATTR_VECTOR ()) KERNEL_FQ void m31100_s08 (KERN_ATTR_VECTOR ())
{ {
/** /**
* base * base
@ -455,10 +455,10 @@ KERNEL_FQ void m36000_s08 (KERN_ATTR_VECTOR ())
* main * main
*/ */
m36000s (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz); m31100s (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz);
} }
KERNEL_FQ void m36000_s16 (KERN_ATTR_VECTOR ()) KERNEL_FQ void m31100_s16 (KERN_ATTR_VECTOR ())
{ {
/** /**
* base * base
@ -495,5 +495,5 @@ KERNEL_FQ void m36000_s16 (KERN_ATTR_VECTOR ())
* main * main
*/ */
m36000s (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz); m31100s (w, pw_len, pws, rules_buf, combs_buf, words_buf_r, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, kernel_param, gid, lid, lsz);
} }

View File

@ -14,7 +14,7 @@
#include M2S(INCLUDE_PATH/inc_hash_sm3.cl) #include M2S(INCLUDE_PATH/inc_hash_sm3.cl)
#endif #endif
KERNEL_FQ void m36000_mxx (KERN_ATTR_VECTOR ()) KERNEL_FQ void m31100_mxx (KERN_ATTR_VECTOR ())
{ {
/** /**
* modifier * modifier
@ -69,7 +69,7 @@ KERNEL_FQ void m36000_mxx (KERN_ATTR_VECTOR ())
} }
} }
KERNEL_FQ void m36000_sxx (KERN_ATTR_VECTOR ()) KERNEL_FQ void m31100_sxx (KERN_ATTR_VECTOR ())
{ {
/** /**
* modifier * modifier

View File

@ -18,7 +18,7 @@ static const u32 DGST_POS3 = 6;
static const u32 DGST_SIZE = DGST_SIZE_4_8; static const u32 DGST_SIZE = DGST_SIZE_4_8;
static const u32 HASH_CATEGORY = HASH_CATEGORY_RAW_HASH; static const u32 HASH_CATEGORY = HASH_CATEGORY_RAW_HASH;
static const char *HASH_NAME = "SM3"; static const char *HASH_NAME = "SM3";
static const u64 KERN_TYPE = 36000; static const u64 KERN_TYPE = 31100;
static const u32 OPTI_TYPE = OPTI_TYPE_ZERO_BYTE static const u32 OPTI_TYPE = OPTI_TYPE_ZERO_BYTE
| OPTI_TYPE_PRECOMPUTE_INIT | OPTI_TYPE_PRECOMPUTE_INIT
| OPTI_TYPE_EARLY_SKIP | OPTI_TYPE_EARLY_SKIP