NAME

read-pgpkey - extract key material from a PGP keyfile

SYNOPSIS

read-pgpkey infile outfile

DESCRIPTION

The program writes a complete PCP keyfile to "outfile" after having extracted the key material from "infile". The input can be any PGP key either binary or ascii-armored.
The value 1 will be used for the hash modulus and generator and both values should be substituted with a valid hashkey subsequently.

In case of a secret key the key must be stored unprotected, i.e. with an empty passphrase in order to extract the secret decryption value, because the program does not use any symmetric cipher. Use protect-secretkey to encrypt the secret key with PCP's protection mechanism and wipe all files containing unencrypted data from the filesystem reliably.

Additionally the two primes p and q are printed to stdout when a secret key is processed.

AUTHOR

Written by Ralf Senderek.

COPYRIGHT

All rights reserved. © 2003
This is free software. Use this software on your own risk or not at all. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

pcp - the Pure Crypto Program (http://senderek.ie/research/pcp)
protect-secretkey, read-sshkey, read-opensslkey, sechash, check-keys