Deltarpm *not* ready for new RPM checksums (was Re: Ready for new RPM version?)

Michael Schroeder mls at suse.de
Tue Mar 10 13:39:40 UTC 2009


On Tue, Mar 10, 2009 at 10:33:44AM +0100, Michael Schroeder wrote:
> My plan was to just modify the expandseq() function so that it
> uses sha256 if the checksums stored in the rpm header look like
> sha256.

I just did some experiments and it seems that we just need two
changes:

- change parsemd5 so that it doesn't complain about too many
  characters

- change the checkfilemd5/checkprelinked functions so that they
  use the alroeithm specified in the header's FILEDIGESTALGO
  tag.

We would compare only the first 16 bytes of the sha256 sums,
but that should be no problem as it's not a security relevant
check.

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}




More information about the fedora-devel-list mailing list