|
Message-ID: <20150324125533.GA2643@openwall.com> Date: Tue, 24 Mar 2015 15:55:33 +0300 From: Solar Designer <solar@...nwall.com> To: john-dev@...ts.openwall.com Subject: Re: [GSoC] building JtR for MIC On Tue, Mar 24, 2015 at 08:07:37PM +0800, Lei Zhang wrote: > SHA1_Init(&ctx); > > > char keybuf[BUFLEN]; > FILE *file = fopen("dump", "rb"); > fread(keybuf, 1, BUFLEN, file); > > > SHA1_Update(&ctx, keybuf, BUFLEN); > printf("%lu\n", ctx.h0); > } > ---------------------------------------------------- > The input file used in the code is attached below. > > > The code above prints 748926355 when running on the host, but prints 2625354361 on MIC. There's seems to be something wrong with the cross-compiled OpenSSL, but I'm not sure yet. This certainly looks like a miscompile of OpenSSL. Can you please provide the numbers printed right after SHA1_Init()? Are they the same or also different for the two builds? > Maybe you have some insights on this? I'd guess that OpenSSL somehow got configured for a wrong size of "long" or/and endianness. Since you were cross-compiling, you couldn't even "make check" it easily. Alexander
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.