~ubuntu-branches/ubuntu/hoary/maelstrom/hoary

1
2
3
4
5
6
7
8
9
10
11
/* Okay, here is a method of doing checksumming on ourselves.

   Note, this is NOT foolproof, so don't rely on it for critical software!
*/

/* Call this to calculate the checksum -- first thing in main()! */
extern void checksum(void);

/* Call this later, when you want to see the checksum */
extern char *get_checksum(unsigned char *key, int keylen);