{"comment":{"url":"https://api.github.com/repos/magnumripper/JohnTheRipper/comments/21157287","html_url":"https://github.com/magnumripper/JohnTheRipper/commit/9737dea214b5e52e87fd5775acadc7839d0fcdee#commitcomment-21157287","id":21157287,"user":{"login":"magnumripper","id":1268598,"avatar_url":"https://avatars0.githubusercontent.com/u/1268598?v=3","gravatar_id":"","url":"https://api.github.com/users/magnumripper","html_url":"https://github.com/magnumripper","followers_url":"https://api.github.com/users/magnumripper/followers","following_url":"https://api.github.com/users/magnumripper/following{/other_user}","gists_url":"https://api.github.com/users/magnumripper/gists{/gist_id}","starred_url":"https://api.github.com/users/magnumripper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnumripper/subscriptions","organizations_url":"https://api.github.com/users/magnumripper/orgs","repos_url":"https://api.github.com/users/magnumripper/repos","events_url":"https://api.github.com/users/magnumripper/events{/privacy}","received_events_url":"https://api.github.com/users/magnumripper/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"9737dea214b5e52e87fd5775acadc7839d0fcdee","created_at":"2017-03-05T13:51:35Z","updated_at":"2017-03-05T13:51:35Z","body":"```diff\r\ndiff --git a/src/opencl_o5logon_fmt_plug.c b/src/opencl_o5logon_fmt_plug.c\r\nindex 56a7ee5..049bcb0 100644\r\n--- a/src/opencl_o5logon_fmt_plug.c\r\n+++ b/src/opencl_o5logon_fmt_plug.c\r\n@@ -291,12 +291,28 @@ static int crypt_all(int *pcount, struct db_salt *salt)\r\n                clEnqueueReadBuffer(queue[gpu_id], buffer_out, CL_TRUE, 0, sizeof(cl_uint) * (gws + 1), result, 0, NULL, multi_profilingEvent[3]),\r\n                \"failed in reading data back\");\r\n \r\n+#if 0\r\n        return result[0];\r\n+#else\r\n+       return count;\r\n+#endif\r\n }\r\n \r\n static int cmp_all(void *binary, int count)\r\n {\r\n+#if 0\r\n        return result[0];\r\n+#else\r\n+       int i;\r\n+       for (i = count; i > 0; i--)\r\n+               if (result[i])\r\n+                       goto found;\r\n+       return 0;\r\n+found:\r\n+       if (i != result[0])\r\n+               error_msg(\"highest %d, r0 %d\\n\", i, result[0]);\r\n+       return 1;\r\n+#endif\r\n }\r\n \r\n static int cmp_one(void *binary, int index)\r\n```\r\n```\r\n$ make -sj4 && while true; do ../run/john -test=0 -form:o5logon-opencl -dev=cpu || break; done\r\n\r\nMake process completed.\r\nDevice 0: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz\r\nTesting: o5logon-opencl, Oracle O5LOGON protocol [SHA1 AES OpenCL]... PASS\r\nDevice 0: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz\r\nTesting: o5logon-opencl, Oracle O5LOGON protocol [SHA1 AES OpenCL]... PASS\r\n(...)\r\nDevice 0: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz\r\nTesting: o5logon-opencl, Oracle O5LOGON protocol [SHA1 AES OpenCL]... highest 5, r0 0\r\n```"}}
{"actor":{"display_login":"magnumripper"}}