1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-27 02:18:21 +00:00
Commit Graph

280 Commits

Author SHA1 Message Date
jsteube
dad03e394d Fixed two major problems
1) SIMD code for all attack-mode

Macro vector_accessible() was not refactored and missing completely.
Had to rename variables rules_cnt, combs_cnt and bfs_cnt into il_cnt which was a good thing anyway as with new SIMD code they all act in the same way.

2) SIMD code for attack-mode 0

With new SIMD code, apply_rules_vect() has to return u32 not u32x.
This has massive impact on all *_a0 kernels.

I've rewritten most of them. Deep testing using test.sh is still required.

Some kernel need more fixes:

- Some are kind of completely incompatible like m10400 but they still use old check_* includes, we should get rid of them as they are no longer neccessary as we have simd.c
- Some have a chance but require additional effort like m11500. We can use commented out "#define NEW_SIMD_CODE" to find them

This change can have negative impact on -a0 performance for device that require vectorization. That is mostly CPU devices. New GPU's are all scalar, so they wont get hurt by this.
This change also proofes that there's no way to efficiently vectorize kernel rules with new SIMD code, but it enables the addition of the rule functions like @ that we were missing for some long time. This is a TODO.
2016-02-27 17:18:54 +01:00
Jens Steube
18ec554ea0 Cleanup of all raw-SHA1 based algorithms 2016-02-24 15:27:02 +01:00
Jens Steube
12fa3d6bfc Cleanup of all raw-MD5 based algorithms; small change important for later changes 2016-02-24 13:40:38 +01:00
Jens Steube
7e9fee2155 Cleanup of all raw-MD5 based algorithms; Should be done for all raw-SHA1, -SHA256 and -SHA512 based algorithms as well 2016-02-24 11:35:13 +01:00
Jens Steube
01c847ba94 Do not use values that can actually crack a hash in autotune 2016-02-23 15:00:56 +01:00
Jens Steube
a81162b087 Speed up -m 20 in -a 3 mode 2016-02-23 12:18:47 +01:00
Jens Steube
d9fcf87e1c Increase salt length for raw-md5 based algorithms 2016-02-22 21:35:37 +01:00
Jens Steube
e6e5005a6b Revert "Zero pws_buf before reuse"
This reverts commit b409e5e9e1.
2016-02-22 21:32:38 +01:00
Jens Steube
b409e5e9e1 Zero pws_buf before reuse 2016-02-22 21:20:16 +01:00
Jens Steube
6bc98368ba Get rid of old pw_cache mechanism to control host-based vector data-types 2016-02-22 11:57:37 +01:00
Jens Steube
c7a1a1e84d New SIMD code for -a 1 -m 100 2016-02-22 10:09:16 +01:00
Jens Steube
b4665607f7 New SIMD code for -a 1 -m 60 2016-02-22 10:02:23 +01:00
Jens Steube
797f03b424 New SIMD code for -a 1 -m 40 2016-02-22 10:01:55 +01:00
Jens Steube
d6c6af040b New SIMD code for -a 1 -m 40 2016-02-22 10:01:53 +01:00
Jens Steube
097650423a New SIMD code for -a 1 -m 30 2016-02-22 10:01:49 +01:00
Jens Steube
913dfa058c New SIMD code for -a 1 -m 20 2016-02-21 18:40:10 +01:00
Jens Steube
0b29be3f86 New SIMD code for -a 1 -m 10 2016-02-21 18:40:06 +01:00
Jens Steube
21c66ea301 New SIMD code for -a 1 -m 0 2016-02-21 18:40:01 +01:00
Jens Steube
7ae2510f11 New SIMD code for -a 1 prepare 2016-02-21 18:39:44 +01:00
Jens Steube
7190dcf855 Prepare NEW_SIMD_MODE for -a 1 kernels 2016-02-20 16:13:06 +01:00
Fist0urs
62bed36638 Add verification of checksum for -m 13100
This avoid collisions by arc4'ing all data then hmac-md5
when valid ASN1 structures headers are found.
Performance should not be impacted.
2016-02-19 23:12:46 +01:00
magnum
a5be8a75ed Allow and support vector-width 16, which is current maximum for
OpenCL. Closes #226.
2016-02-18 08:51:45 +01:00
Fist0urs
223ab0b3db Cosmetic change -m 13100
Removed commented part (the commented part was there to implement full last arc4'ing + hmac-md5)
We will see if some people find collision. In this case we will add this last check
2016-02-17 13:32:07 +01:00
Fist0urs
c3dabdd69e Initial commit 2016-02-16 16:34:46 +01:00
jsteube
7645a6f00f Fix warp bug on -m 8500 2016-02-16 13:24:36 +01:00
Jens Steube
138ea7ed11 Fix Truecrypt Whirlpool speed 2016-02-16 10:47:40 +01:00
Jens Steube
c09bc848f7 Autotuning engine prototype 2016-02-14 15:45:52 +01:00
Jens Steube
acbae91750 Prepare SIMD for slow hashes macro 2016-02-08 19:49:28 +01:00
Jens Steube
9a1f35d604 Converted to new SIMD: -m 5000 -a 0 2016-02-06 11:29:07 +01:00
Jens Steube
30242ef38c Converted to new SIMD: -m 9720 -a 0 2016-02-06 11:29:00 +01:00
Jens Steube
b88d1140b7 Converted to new SIMD: -m 9820 -a 0 2016-02-06 11:28:55 +01:00
Jens Steube
db1d480a02 Converted to new SIMD: -m 9900 -a 0 2016-02-06 11:28:30 +01:00
Jens Steube
be1275ea7f Converted to new SIMD: -m 8700 -a 0 2016-02-06 11:20:25 +01:00
Jens Steube
ae33777e73 Converted to new SIMD: -m 8600 -a 0 2016-02-06 11:17:00 +01:00
Jens Steube
65274b0404 Converted to new SIMD: -m 8500 -a 0 2016-02-06 11:03:25 +01:00
Jens Steube
60d43ed064 Converted to new SIMD: -m 8400 -a 0 2016-02-06 11:01:22 +01:00
Jens Steube
1f14182585 Converted to new SIMD: -m 8300 -a 0 2016-02-06 10:58:20 +01:00
Jens Steube
53edf5d4a4 Converted to new SIMD: -m 8100 -a 0 2016-02-06 10:57:19 +01:00
Jens Steube
80d492eacd Converted to new SIMD: -m 8000 -a 0 2016-02-06 10:54:34 +01:00
Jens Steube
e8c0410bcd Converted to new SIMD: -m 7600 -a 0 2016-02-06 10:49:44 +01:00
Jens Steube
81f3fd3c7f Converted to new SIMD: -m 7300 -a 0 2016-02-06 10:47:19 +01:00
Jens Steube
e536eed0c1 Converted to new SIMD: -m 6900 -a 0 2016-02-06 10:46:16 +01:00
Jens Steube
915a315e56 Converted to new SIMD: -m 6100 -a 0 2016-02-06 10:40:51 +01:00
Jens Steube
55b51488de Converted to new SIMD: -m 6000 -a 0 2016-02-06 10:38:39 +01:00
Jens Steube
4d86284a13 Converted to new SIMD: -m 5600 -a 0 2016-02-06 10:35:59 +01:00
Jens Steube
80d97cf38a Converted to new SIMD: -m 5500 -a 0 2016-02-06 10:33:54 +01:00
Jens Steube
ca7d382dce Converted to new SIMD: -m 5500 -a 0 2016-02-06 10:24:34 +01:00
Jens Steube
b3a43b47a1 Converted to new SIMD: -m 5400 -a 0 2016-02-06 10:23:42 +01:00
Jens Steube
bbda891fe9 Converted to new SIMD: -m 5300 -a 0 2016-02-06 10:19:54 +01:00
Jens Steube
898d8fbaea Converted to new SIMD: -m 5100 -a 0 2016-02-06 10:18:38 +01:00
Jens Steube
5877abb4f4 Converted to new SIMD: -m 4900 -a 0 2016-02-06 10:14:38 +01:00
Jens Steube
b477e5c481 Converted to new SIMD: -m 4800 -a 0 2016-02-06 10:11:07 +01:00
Jens Steube
f10255d82a Converted to new SIMD: -m 4700 -a 0 2016-02-06 10:09:38 +01:00
Jens Steube
e6393454f0 Converted to new SIMD: -m 4500 -a 0 2016-02-06 10:07:54 +01:00
Jens Steube
6369c0b899 Converted to new SIMD: -m 4400 -a 0 2016-02-06 10:04:45 +01:00
Jens Steube
a43a7d5786 Converted to new SIMD: -m 4310 -a 0 2016-02-05 21:58:59 +01:00
Jens Steube
53a31f840e Converted to new SIMD: -m 3800 -a 0 2016-02-05 21:53:47 +01:00
Jens Steube
de79ce8958 Converted to new SIMD: -m 3710 -a 0 2016-02-05 21:51:01 +01:00
Jens Steube
ceb96a7735 Converted to new SIMD: -m 3100 -a 0 2016-02-05 21:44:23 +01:00
Jens Steube
ffab75a8d4 Converted to new SIMD: -m 3000 -a 0 2016-02-05 21:32:44 +01:00
Jens Steube
605f8f07fb Converted to new SIMD: -m 2810 -a 0 2016-02-05 21:23:39 +01:00
Jens Steube
ef3afbab9d Converted to new SIMD: -m 2710 -a 0 2016-02-05 21:20:42 +01:00
Jens Steube
0584c7a387 Converted to new SIMD: -m 2610 -a 0 2016-02-05 21:20:22 +01:00
Jens Steube
ebcdbf1858 Converted to new SIMD: -m 2410 -a 0 2016-02-05 18:12:12 +01:00
Jens Steube
879cc4242d Converted to new SIMD: -m 2400 -a 0 2016-02-05 18:11:54 +01:00
Jens Steube
fbd46f61be Converted to new SIMD: -m 1760 -a 0 2016-02-05 18:01:37 +01:00
Jens Steube
404f4ca37c Converted to new SIMD: -m 1750 -a 0 2016-02-05 18:00:47 +01:00
Jens Steube
82de33e7fa Converted to new SIMD: -m 1740 -a 0 2016-02-05 17:55:55 +01:00
Jens Steube
3b36c2a7df Converted to new SIMD: -m 1730 -a 0 2016-02-05 17:54:04 +01:00
Jens Steube
7b4dc7f1b7 Converted to new SIMD: -m 1720 -a 0 2016-02-05 17:53:03 +01:00
Jens Steube
520fdec146 Converted to new SIMD: -m 1710 -a 0 2016-02-05 17:52:52 +01:00
Jens Steube
1d43f80ea5 Converted to new SIMD: -m 1700 -a 0 2016-02-05 17:52:42 +01:00
Jens Steube
7c8532fe93 Converted to new SIMD: -m 190 -a 0 2016-02-05 17:44:33 +01:00
Jens Steube
811090ff23 Converted to new SIMD: -m 1500 -a 0 2016-02-05 17:43:34 +01:00
Jens Steube
714f75d551 Converted to new SIMD: -m 1460 -a 0 2016-02-05 17:43:31 +01:00
Jens Steube
1983b03fe8 Converted to new SIMD: -m 1450 -a 0 2016-02-05 17:43:28 +01:00
Jens Steube
bc3f56555b Converted to new SIMD: -m 1440 -a 0 2016-02-05 17:43:25 +01:00
Jens Steube
c8bfcb9de9 Converted to new SIMD: -m 1430 -a 0 2016-02-05 17:43:22 +01:00
Jens Steube
8ee13182f7 Converted to new SIMD: -m 1420 -a 0 2016-02-05 17:43:19 +01:00
Jens Steube
4f842ea28b Converted to new SIMD: -m 1410 -a 0 2016-02-05 17:43:16 +01:00
Jens Steube
b335e5610f Converted to new SIMD: -m 1400 -a 0 2016-02-05 17:43:13 +01:00
Jens Steube
df0cba1205 Converted to new SIMD: -m 1100 -a 0 2016-02-05 17:43:10 +01:00
Jens Steube
14da5fb2fb Converted to new SIMD: -m 900 -a 0 2016-02-05 17:43:07 +01:00
Jens Steube
46f222dc4e Converted to new SIMD: -m 300 -a 0 2016-02-05 17:43:03 +01:00
Jens Steube
d2f49e3668 Converted to new SIMD: -m 200 -a 0 2016-02-05 17:43:00 +01:00
Jens Steube
73b9732f55 Converted to new SIMD: -m 160 -a 0 2016-02-05 17:41:45 +01:00
Jens Steube
033864a418 Converted to new SIMD: -m 150 -a 0 2016-02-05 17:41:42 +01:00
Jens Steube
8eaf8d2422 Converted to new SIMD: -m 140 -a 0 2016-02-05 17:41:39 +01:00
Jens Steube
faf34b3787 Converted to new SIMD: -m 130 -a 0 2016-02-05 17:41:36 +01:00
Jens Steube
83de129659 Converted to new SIMD: -m 120 -a 0 2016-02-05 17:41:33 +01:00
Jens Steube
565b7deb6e Converted to new SIMD: -m 110 -a 0 2016-02-05 17:41:30 +01:00
Jens Steube
4575554830 Converted to new SIMD: -m 100 -a 0 2016-02-05 17:41:27 +01:00
Jens Steube
92a8f820c9 Converted to new SIMD: -m 60 -a 0 2016-02-05 17:41:24 +01:00
Jens Steube
e602324149 Converted to new SIMD: -m 50 -a 0 2016-02-05 17:41:14 +01:00
Jens Steube
f5cd034357 Converted to new SIMD: -m 40 -a 0 2016-02-05 17:41:11 +01:00
Jens Steube
c3492115a1 Converted to new SIMD: -m 30 -a 0 2016-02-05 17:41:08 +01:00
Jens Steube
ad3aef39f5 Converted to new SIMD: -m 20 -a 0 2016-02-05 17:41:05 +01:00
Jens Steube
626e1b64d5 Converted to new SIMD: -m 10 -a 0 2016-02-05 17:38:39 +01:00
Jens Steube
b6f10a2a81 Fix some bugs related to -a0, all caused by the same pitfall 2016-02-04 23:25:52 +01:00
Jens Steube
737678284f Converted to new SIMD: -m 10100 -a 0 2016-02-04 23:12:24 +01:00