Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [day] [month] [year] [list]
Date: Tue, 25 Aug 2015 15:03:28 +0300
From: Solar Designer <solar@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: raw-sha256-opencl, raw-sha512-opencl, xsha512-opencl

Claudio, magnum -

The attached patch fixes the "max. length in index 1: wrote 55, got 55
back" self-test error seen after auto-tuning.  I didn't test actual
cracking with these formats after applying that patch - we should.

Another known issue with these formats is that they implement on-GPU
hash comparison using linear search.  So when cracking a large number of
hashes at once, they actually became a lot slower than what we had before
(with computed partial hashes transferred to host).  In a private e-mail
exchange, Claudio said he'll eventually correct this.  I am merely
documenting it on john-dev since I am posting about these formats anyway.

Alexander

diff --git a/src/opencl_rawsha256_fmt_plug.c b/src/opencl_rawsha256_fmt_plug.c
index 54b717a..53a3625 100644
--- a/src/opencl_rawsha256_fmt_plug.c
+++ b/src/opencl_rawsha256_fmt_plug.c
@@ -346,6 +346,8 @@ static void reset(struct db_main *db)
 		create_clobj(global_work_size, self);
 		load_hash(db->salts);
 	}
+
+	hash_ids[0] = 0;
 }
 
 /* ------- Key functions ------- */
diff --git a/src/opencl_rawsha512_fmt_plug.c b/src/opencl_rawsha512_fmt_plug.c
index e4edd79..de50862 100644
--- a/src/opencl_rawsha512_fmt_plug.c
+++ b/src/opencl_rawsha512_fmt_plug.c
@@ -411,6 +411,8 @@ static void reset(struct db_main *db)
 		create_clobj(global_work_size, self);
 		load_hash(db->salts);
 	}
+
+	hash_ids[0] = 0;
 }
 
 /* ------- Key functions ------- */

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ