On 2008-09-20 Werner Koch <[EMAIL PROTECTED]> wrote:
> On Sat, 20 Sep 2008 09:12, [EMAIL PROTECTED] said:
>> Program received signal SIGBUS, Bus error.
>> 0xf7f00af8 in finalize (hd=0x2cec8) at hmac256.c:279
>> 279 X(0);
> Interesting:
> #ifdef WORDS_BIGENDIAN
> #define X(a) do { *(u32*)p = hd->h##a ; p += 4; } while(0)
> #else /* little endian */
> #define X(a) do { *p++ = hd->h##a >> 24; *p++ = hd->h##a >> 16; \
> *p++ = hd->h##a >> 8; *p++ = hd->h##a; } while(0)
> #endif
> The same code is used for 10 years or so all over the place but
> obviously P used to be correctly alliged. Now this incarnation of the
> code has an unaliged P and thus crashes. Easy to fix:
[...]
Thanks, this fixes the bus-error and the test exits with 0, although
it seems to generate an error not present ix86:
-------------------
sid)[EMAIL PROTECTED]:/tmp/GCR/libgcrypt11-1.4.3$ ./tests/.libs/lt-basic
--verbose -verbose ; echo Exitcode is $?
Starting Cipher checks.
[...]
Completed additional public key checks.
libgcrypt selftest: digest HMAC-SHA256 (8): does not match in second
implementation (data-28 key-4)
libgcrypt selftest: digest HMAC-SHA256 (8): Selftest failed
All tests completed. Errors: 0
Exitcode is 0
-------------------
cu andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]