Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 18 Jul 2014 04:08:06 +0200
From: Lukas Odzioba <lukas.odzioba@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: CUDA Test Results on ARM w/CUDA

2014-07-18 3:22 GMT+02:00 Lukas Odzioba <lukas.odzioba@...il.com>:
> For some reason this format fails with sm_20 and grater when password is
empty.

This is caused by memcpy function itself.
The following patch seems to fix the problem, but sice it has performance
impact I am not convinced to using it in production code without SM
detection:

--- cryptmd5.cu 2014-07-18 01:50:16.412332266 +0000
+++ cryptmd5-2.cu 2014-07-18 01:50:48.020313773 +0000
@@ -35,7 +35,8 @@ __device__ void ctx_update(md5_ctx * ctx
  uint8_t *dest = &ctx->buffer[*ctx_buflen];
  uint8_t *src = (uint8_t *) string;
  *ctx_buflen += len;
- memcpy(dest, src, len);
+ if(len)
+ memcpy(dest, src, len);
 }


Lukas

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.