switch hash-mode from 1770 to 21000

pull/2131/head
Gabriele Gristina 5 years ago
parent 1a110b4f71
commit bba2ee65a2

@ -125,7 +125,7 @@ DECLSPEC void sha512_transform_opt (const u32x *w0, const u32x *w1, const u32x *
digest[7] = h;
}
KERNEL_FQ void m01770_m04 (KERN_ATTR_RULES ())
KERNEL_FQ void m21000_m04 (KERN_ATTR_RULES ())
{
/**
* modifier
@ -266,15 +266,15 @@ KERNEL_FQ void m01770_m04 (KERN_ATTR_RULES ())
}
}
KERNEL_FQ void m01770_m08 (KERN_ATTR_RULES ())
KERNEL_FQ void m21000_m08 (KERN_ATTR_RULES ())
{
}
KERNEL_FQ void m01770_m16 (KERN_ATTR_RULES ())
KERNEL_FQ void m21000_m16 (KERN_ATTR_RULES ())
{
}
KERNEL_FQ void m01770_s04 (KERN_ATTR_RULES ())
KERNEL_FQ void m21000_s04 (KERN_ATTR_RULES ())
{
/**
* modifier
@ -427,10 +427,10 @@ KERNEL_FQ void m01770_s04 (KERN_ATTR_RULES ())
}
}
KERNEL_FQ void m01770_s08 (KERN_ATTR_RULES ())
KERNEL_FQ void m21000_s08 (KERN_ATTR_RULES ())
{
}
KERNEL_FQ void m01770_s16 (KERN_ATTR_RULES ())
KERNEL_FQ void m21000_s16 (KERN_ATTR_RULES ())
{
}

@ -16,7 +16,7 @@
#include "inc_hash_sha512.cl"
#endif
KERNEL_FQ void m01770_mxx (KERN_ATTR_RULES ())
KERNEL_FQ void m21000_mxx (KERN_ATTR_RULES ())
{
/**
* modifier
@ -87,7 +87,7 @@ KERNEL_FQ void m01770_mxx (KERN_ATTR_RULES ())
}
}
KERNEL_FQ void m01770_sxx (KERN_ATTR_RULES ())
KERNEL_FQ void m21000_sxx (KERN_ATTR_RULES ())
{
/**
* modifier

@ -218,7 +218,7 @@ DECLSPEC void sha512_transform_opt (const u32x *w0, const u32x *w1, const u32x *
digest[7] = h;
}
KERNEL_FQ void m01770_m04 (KERN_ATTR_BASIC ())
KERNEL_FQ void m21000_m04 (KERN_ATTR_BASIC ())
{
/**
* modifier
@ -397,15 +397,15 @@ KERNEL_FQ void m01770_m04 (KERN_ATTR_BASIC ())
}
}
KERNEL_FQ void m01770_m08 (KERN_ATTR_BASIC ())
KERNEL_FQ void m21000_m08 (KERN_ATTR_BASIC ())
{
}
KERNEL_FQ void m01770_m16 (KERN_ATTR_BASIC ())
KERNEL_FQ void m21000_m16 (KERN_ATTR_BASIC ())
{
}
KERNEL_FQ void m01770_s04 (KERN_ATTR_BASIC ())
KERNEL_FQ void m21000_s04 (KERN_ATTR_BASIC ())
{
/**
* modifier
@ -596,10 +596,10 @@ KERNEL_FQ void m01770_s04 (KERN_ATTR_BASIC ())
}
}
KERNEL_FQ void m01770_s08 (KERN_ATTR_BASIC ())
KERNEL_FQ void m21000_s08 (KERN_ATTR_BASIC ())
{
}
KERNEL_FQ void m01770_s16 (KERN_ATTR_BASIC ())
KERNEL_FQ void m21000_s16 (KERN_ATTR_BASIC ())
{
}

@ -14,7 +14,7 @@
#include "inc_hash_sha512.cl"
#endif
KERNEL_FQ void m01770_mxx (KERN_ATTR_BASIC ())
KERNEL_FQ void m21000_mxx (KERN_ATTR_BASIC ())
{
/**
* modifier
@ -83,7 +83,7 @@ KERNEL_FQ void m01770_mxx (KERN_ATTR_BASIC ())
}
}
KERNEL_FQ void m01770_sxx (KERN_ATTR_BASIC ())
KERNEL_FQ void m21000_sxx (KERN_ATTR_BASIC ())
{
/**
* modifier

@ -218,7 +218,7 @@ DECLSPEC void sha512_transform_opt (const u32x *w0, const u32x *w1, const u32x *
digest[7] = h;
}
DECLSPEC void m01770m (u32 *w, const u32 pw_len, KERN_ATTR_VECTOR ())
DECLSPEC void m21000m (u32 *w, const u32 pw_len, KERN_ATTR_VECTOR ())
{
/**
* modifier
@ -311,7 +311,7 @@ DECLSPEC void m01770m (u32 *w, const u32 pw_len, KERN_ATTR_VECTOR ())
}
}
DECLSPEC void m01770s (u32 *w, const u32 pw_len, KERN_ATTR_VECTOR ())
DECLSPEC void m21000s (u32 *w, const u32 pw_len, KERN_ATTR_VECTOR ())
{
/**
* modifier
@ -416,7 +416,7 @@ DECLSPEC void m01770s (u32 *w, const u32 pw_len, KERN_ATTR_VECTOR ())
}
}
KERNEL_FQ void m01770_m04 (KERN_ATTR_VECTOR ())
KERNEL_FQ void m21000_m04 (KERN_ATTR_VECTOR ())
{
/**
* base
@ -451,10 +451,10 @@ KERNEL_FQ void m01770_m04 (KERN_ATTR_VECTOR ())
* main
*/
m01770m (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
m21000m (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
}
KERNEL_FQ void m01770_m08 (KERN_ATTR_VECTOR ())
KERNEL_FQ void m21000_m08 (KERN_ATTR_VECTOR ())
{
/**
* base
@ -489,10 +489,10 @@ KERNEL_FQ void m01770_m08 (KERN_ATTR_VECTOR ())
* main
*/
m01770m (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
m21000m (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
}
KERNEL_FQ void m01770_m16 (KERN_ATTR_VECTOR ())
KERNEL_FQ void m21000_m16 (KERN_ATTR_VECTOR ())
{
/**
* base
@ -527,10 +527,10 @@ KERNEL_FQ void m01770_m16 (KERN_ATTR_VECTOR ())
* main
*/
m01770m (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
m21000m (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
}
KERNEL_FQ void m01770_s04 (KERN_ATTR_VECTOR ())
KERNEL_FQ void m21000_s04 (KERN_ATTR_VECTOR ())
{
/**
* base
@ -565,10 +565,10 @@ KERNEL_FQ void m01770_s04 (KERN_ATTR_VECTOR ())
* main
*/
m01770s (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
m21000s (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
}
KERNEL_FQ void m01770_s08 (KERN_ATTR_VECTOR ())
KERNEL_FQ void m21000_s08 (KERN_ATTR_VECTOR ())
{
/**
* base
@ -603,10 +603,10 @@ KERNEL_FQ void m01770_s08 (KERN_ATTR_VECTOR ())
* main
*/
m01770s (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
m21000s (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
}
KERNEL_FQ void m01770_s16 (KERN_ATTR_VECTOR ())
KERNEL_FQ void m21000_s16 (KERN_ATTR_VECTOR ())
{
/**
* base
@ -641,5 +641,5 @@ KERNEL_FQ void m01770_s16 (KERN_ATTR_VECTOR ())
* main
*/
m01770s (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
m21000s (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, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
}

@ -14,7 +14,7 @@
#include "inc_hash_sha512.cl"
#endif
KERNEL_FQ void m01770_mxx (KERN_ATTR_VECTOR ())
KERNEL_FQ void m21000_mxx (KERN_ATTR_VECTOR ())
{
/**
* modifier
@ -96,7 +96,7 @@ KERNEL_FQ void m01770_mxx (KERN_ATTR_VECTOR ())
}
}
KERNEL_FQ void m01770_sxx (KERN_ATTR_VECTOR ())
KERNEL_FQ void m21000_sxx (KERN_ATTR_VECTOR ())
{
/**
* modifier

@ -92,7 +92,6 @@ NVIDIA GPUs require "NVIDIA Driver" (418.56 or later) and "CUDA Toolkit" (10.1 o
- sha512($salt.$pass)
- sha512(utf16le($pass).$salt)
- sha512($salt.utf16le($pass))
- BitShares v0.x - sha512(sha512(pass))
- HMAC-MD5 (key = $pass)
- HMAC-MD5 (key = $salt)
- HMAC-SHA1 (key = $pass)

@ -18,7 +18,7 @@ static const u32 DGST_POS3 = 7;
static const u32 DGST_SIZE = DGST_SIZE_8_8;
static const u32 HASH_CATEGORY = HASH_CATEGORY_RAW_HASH;
static const char *HASH_NAME = "BitShares v0.x - sha512(sha512(pass))";
static const u64 KERN_TYPE = 1770;
static const u64 KERN_TYPE = 21000;
static const u32 OPTI_TYPE = OPTI_TYPE_ZERO_BYTE
| OPTI_TYPE_PRECOMPUTE_INIT
| OPTI_TYPE_EARLY_SKIP
Loading…
Cancel
Save