help-shishi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 64-bit issue with checksumming.


From: Simon Josefsson
Subject: Re: 64-bit issue with checksumming.
Date: Wed, 08 Aug 2012 15:50:51 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.3 (gnu/linux)

Mats Erik Andersson <address@hidden> writes:

> Hello there,
>
> I have found a discrepancy between 32-bit Wheezy and
> 64-bit Squeeze systems.
>
> Both systems deliver cksumtype 0x07 and length 16
> as reported by ASN.1 verbose reports, but
>
>   shishi_authenticator_cksum()
>
> is returning cksumtype 0x07 on i386, and 0x00 on amd64.
>
> As a consequence, shishi_checksum() is returning data
> of length 12, when fed with the previous setup data.
> Manually forcing cksumtype 0x07 into shishi_checksum(),
> by overriding the claim from shishi_authenticator_cksum(),
> will restore the expected functionality.
>
> Thus shishi_asn1_read() is not able to firmly establish
> the encryption type, but ASN.1 reports correct debugging
> text. It seems that shishi_asn1_read_int32() and macro
> C2I are defective. Broken representation of ASN.1 data?

Interesting, are you able to reproduce this in some easy way?  Could
this be related to this problem:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670316

Maybe you could try that patch and see if it solves your problem.

There is a bunch of ugly casts in Shish that could explain issues like
this.  I'd like to address them, but goings are going slowly...

/Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]