[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-07-17 Thread Michael Vogt
The fix is now in intrepid and I attach the diff for soyuz so that it can be fixed there too. Let me know if I can help further in any way. ** Attachment added: "Fix for the problem" http://launchpadlibrarian.net/16103562/hash-fix.diff ** Changed in: apt (Ubuntu) Status: Fix Committed =

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-07-15 Thread Dioktos
So will the Relase files ever contain correct SHA256 checksums for the Packages.gz files? -- Hardy release files contain invalid SHA256 signatures. https://bugs.launchpad.net/bugs/243630 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. --

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-07-04 Thread Michael Vogt
It turned out that the python<->c++ glue code had issues with strings with \0 in them, this is fixed now. ** Changed in: apt (Ubuntu) Status: In Progress => Fix Committed -- Hardy release files contain invalid SHA256 signatures. https://bugs.launchpad.net/bugs/243630 You received this bug

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-07-04 Thread Michael Vogt
Apt does its sha256 checks on the uncompressed Packages file and that is correct in the Release file. -- Hardy release files contain invalid SHA256 signatures. https://bugs.launchpad.net/bugs/243630 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-07-04 Thread Michael Vogt
It turns out that it is not as easy as this: $ dd if=/dev/urandom of=foo bs=1 count=270 ; python -c 'import apt_pkg; print apt_pkg.sha256sum(open("foo").read())' ; sha256sum foo 270+0 records in 270+0 records out 270 bytes (270 B) copied, 0,00338191 s, 79,8 kB/s 002cba6fd9622137d286dcc428ed49f22

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-07-04 Thread Michael Vogt
Testing the string use-case shows that it goes wrong on 253 bytes: $ dd if=/dev/urandom of=foo bs=1 count=252 ; python -c 'import apt_pkg; print apt_pkg.sha256sum(open("foo").read())' ; sha256sum foo 252+0 records in 252+0 records out 252 bytes (252 B) copied, 0,00294077 s, 85,7 kB/s 83c762165fb

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-07-04 Thread Michael Vogt
Thanks for your bugreport. The usage of sha256sum() with file objects is generally prefered, so apt_pkg.sha256sum(open('Packages.gz') should work. However, there is a bug here somewhere because the string usage should work as well. It does in my tests for small strings, it might be a problem in

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-07-04 Thread Francois-Denis Gonthier
Wrong checksum during receive of 'http://archive.ubuntu.com/ubuntu/dists/gutsy/main/binary-i386/Packages.gz': sha256 expected: baa89858c7e545390273530ba63c61b94c2e09d38c28b0a0311bfa7bde396181, got: af96b1f3119c4ce4b0c6183750279bf7cbdfe62581289f03ad360787e79f968b There have been errors! Same pro

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-07-02 Thread Julian Edwards
** Changed in: soyuz Target: 1.99 => None -- Hardy release files contain invalid SHA256 signatures. https://bugs.launchpad.net/bugs/243630 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@li

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-06-27 Thread Kees Cook
** Changed in: apt (Ubuntu) Sourcepackagename: None => apt -- Hardy release files contain invalid SHA256 signatures. https://bugs.launchpad.net/bugs/243630 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubun

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-06-27 Thread Celso Providelo
** Changed in: soyuz Importance: Undecided => High Assignee: (unassigned) => Celso Providelo (cprov) Status: New => Confirmed Target: None => 1.99 -- Hardy release files contain invalid SHA256 signatures. https://bugs.launchpad.net/bugs/243630 You received this bug notificat

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-06-27 Thread Celso Providelo
All SHA256 after 'feisty' are wrong, we are using apt_pkg.sha256sum() to generate them and it is broken (!) {{{ >>> import apt_pkg >>> apt_pkg.sha256sum(open('Packages.gz').read()) 'baa89858c7e545390273530ba63c61b94c2e09d38c28b0a0311bfa7bde396181' >>> >>> from subprocess import call >>> call(['sha

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-06-27 Thread Kees Cook
Thanks for the report. I'm poking at it myself now, and have forwarded it to the Soyuz folks. -- Hardy release files contain invalid SHA256 signatures. https://bugs.launchpad.net/bugs/243630 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-06-27 Thread John Schofield
I tested this out to confirm Ryan's findings: I downloaded http://archive.ubuntu.com/ubuntu/dists/hardy/Release and http://archive.ubuntu.com/ubuntu/dists/hardy/main/binary- amd64/Packages.gz "md5sum Packages.gz" matches the md5sum data in the Release file. "sha256sum Packages.gz" does NOT match.

[Bug 243630] Re: Hardy release files contain invalid SHA256 signatures.

2008-06-27 Thread John Schofield
** Changed in: ubuntu Status: New => Confirmed -- Hardy release files contain invalid SHA256 signatures. https://bugs.launchpad.net/bugs/243630 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bu