Help!

Checksum type


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PRM - Partner Relationship Management RSS
Next:  Fedora 6 Graphical Install  
Author Message
Michel
External


Since: Apr 25, 2006
Posts: 2



PostPosted: Tue May 16, 2006 2:32 am    Post subject: Checksum type
Archived from groups: linux>redhat>rpm (more info?)

Hello,

In the different repodata files which are used by Yum a rpm package is
mostly referenced by a checksum. My question is how is this checksum
generated/calculated? Which pieces of information are required to
create this checksum?

A example of a checksum from one of the repodata xml files:

<checksum type="sha"
pkgid="YES">0ce988a5349489fa0c7a8c86e86bbd86e1525096</checksum>


Thanks in advance,

Michel
Back to top
J.O. Aho
External


Since: Mar 26, 2004
Posts: 2183



PostPosted: Tue May 16, 2006 4:46 pm    Post subject: Re: Checksum type [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michel wrote:
> Hello,
>
> In the different repodata files which are used by Yum a rpm package is
> mostly referenced by a checksum. My question is how is this checksum
> generated/calculated? Which pieces of information are required to
> create this checksum?
>
> A example of a checksum from one of the repodata xml files:
>
> <checksum type="sha"
> pkgid="YES">0ce988a5349489fa0c7a8c86e86bbd86e1525096</checksum>

From sha1sum man page:

The sums are computed as described in FIPS-180-1. When checking, the
input should be a former output of this program. The default mode is
to print a line with checksum, a character indicating type (`*' for
binary, ` ' for text), and name for each FILE.


An easy google search on FIPS-180-1 give the following link:
http://www.itl.nist.gov/fipspubs/fip180-1.htm

In general you need the whole file in question to generate the checksum, the
length and the data inside the file is analyzed and will then result in the
checksum. Even if you have two files of the same length, but a slight data
difference (one byte is enough), this will generate two different checksums.

I hope this is enough of an answer.


//Aho
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PRM - Partner Relationship Management All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum