1
0
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:
jsteube 2017-07-03 10:47:04 +02:00
parent a22da36a00
commit 34c85a659d
4 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);