Article View: sci.crypt
Article #1047Re: pgp2.0 corrupt ??
From: Bill McCormick
Date: Tue, 29 Sep 1992 02:29
Date: Tue, 29 Sep 1992 02:29
75 lines
2210 bytes
2210 bytes
In article <1992Sep26.161200.2243@eskimo.celestial.com> kurt@eskimo.celestial.com (Kurt Cockrum) writes:
>It would be nice if the signatures for these were well known.
>For example, each part of a distribution could have associated with it
>a hunk of data consisting of signatures from the various checksumming
>programs, say md4, md5, snefru, brik, etc.
Here are the MD5 hash values for the PGP 2.0 distribution.
pgp20.zip: BD 66 4E 83 A1 BC 56 AA 50 32 D6 21 6D 76 3A 01
pgp20src.zip: 0A 5D C0 E1 2C D4 3E 13 74 BB 70 A1 24 BA 98 02
These were created by the simple-minded program which follows.
BEGIN ===== CUT HERE ===== CUT HERE ===== CUT HERE ===== CUT HERE =====
#include <stdio.h>
#include <stdlib.h>
#include "md5.h"
void
findhash( FILE *fp )
{
MD5_CTX ctx;
char buffer[ BUFSIZ ];
size_t count;
int i;
MD5Init( &ctx );
while ( (count=fread(buffer,1,sizeof(buffer),fp)) > 0 )
MD5Update( &ctx, buffer, count );
MD5Final( &ctx );
for ( i=0; i<sizeof(ctx.digest); i++ )
{
printf( "%02x%c",
(unsigned int) ctx.digest[i],
i == (sizeof(ctx.digest)-1) ? '\n' : ' ' );
}
}
int
main( int argc, char **argv )
{
int i;
if ( argc <= 1 )
{
fprintf( stderr, "Usage: %s filename\n", argv[0] );
exit( 1 );
}
for ( i=1; i<argc; i++ )
{
FILE *fp;
fp = fopen( argv[i], "rb" );
if ( fp == NULL )
{
perror( argv[i] );
exit( 1 );
}
printf( "%s:\t", argv[i] );
findhash( fp );
fclose( fp );
}
return 0;
}
END ===== CUT HERE ===== CUT HERE ===== CUT HERE ===== CUT HERE =====
--
SEANEWS [] Seattle News + Mail [] Public Access [] +1 206 937 9529
E-mail for PGP key. sum -r billmcc.pub gives "33931 1"
Technical Details
Message-ID:
<1992Sep29.022904.470@seanews.akita.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!nwnexus!seanews!billmccReferences:
<cis.717119132@kraken> <1992Sep22.005843.4590@Princeton.EDU> <1992Sep26.161200.2243@eskimo.celestial.com>Show Full Headers
Complete Article Headers
Newsgroups: sci.crypt Path: arc1-ca.pugleaf.net!sparky!uunet!nwnexus!seanews!billmcc From: billmcc@seanews.akita.com (Bill McCormick) Subject: Re: pgp2.0 corrupt ?? Organization: SEANEWS - Seattle Public Access News & Mail Date: Tue, 29 Sep 1992 02:29:04 GMT Message-ID: <1992Sep29.022904.470@seanews.akita.com> References: <cis.717119132@kraken> <1992Sep22.005843.4590@Princeton.EDU> <1992Sep26.161200.2243@eskimo.celestial.com> Lines: 75