PUB_FINGERPRINT(3)

NAME
pub_fingerprint - print the fingerprint of

SYNOPSIS
#include <pgplib.h>
int
pub_fingerprint(PGPpubkey_t *key, char str[50]);

DESCRIPTION
The "fingerprint" of key is calculated and stored in str. The "fingerprint" is calculated over the binary representation of the values N and E by means of MD5. The resulting string has fixed length (50) and is not null-terminated.

RETURN VALUES
If an error occured, -1 is returned, if not, 0 is returned.

SEE ALSO
PGPlib(3)

BUGS
The size of the key should have been included in the fingerprint.

HISTORY
Written by Tage Stabell-Kulų. First appeared in PGPlib 0.2.