mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 07:08:19 +00:00
Refactor -m 500 and -m 1600 to use new truncate_block() functions
This commit is contained in:
parent
a22da36a00
commit
34c85a659d
@ -101,7 +101,7 @@ __kernel void m00500_init (__global pw_t *pws, __global const kernel_rule_t *rul
|
||||
md5_update (&md5_ctx, final, 16);
|
||||
}
|
||||
|
||||
truncate_block (final, pl);
|
||||
truncate_block_4x4_le (final, pl);
|
||||
|
||||
md5_update (&md5_ctx, final, pl);
|
||||
|
||||
|
@ -872,7 +872,7 @@ __kernel void m00500_init (__global pw_t *pws, __global const kernel_rule_t *rul
|
||||
|
||||
block_len += salt_len;
|
||||
|
||||
truncate_block (digest, pw_len);
|
||||
truncate_block_4x4_le (digest, pw_len);
|
||||
|
||||
memcat16 (block0, block1, block2, block3, block_len, digest);
|
||||
|
||||
|
@ -103,7 +103,7 @@ __kernel void m01600_init (__global pw_t *pws, __global const kernel_rule_t *rul
|
||||
md5_update (&md5_ctx, final, 16);
|
||||
}
|
||||
|
||||
truncate_block (final, pl);
|
||||
truncate_block_4x4_le (final, pl);
|
||||
|
||||
md5_update (&md5_ctx, final, pl);
|
||||
|
||||
|
@ -887,7 +887,7 @@ __kernel void m01600_init (__global pw_t *pws, __global const kernel_rule_t *rul
|
||||
|
||||
block_len += salt_len;
|
||||
|
||||
truncate_block (digest, pw_len);
|
||||
truncate_block_4x4_le (digest, pw_len);
|
||||
|
||||
memcat16 (block0, block1, block2, block3, block_len, digest);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user