This sample shows how to parse an OpenPGP public key and convert its content to OpenSSL equivalent.Parsing supports RSA, DSA and Elgamal public keys.
Source : pgp_pubkey.c
The Cryptology ePrint Archive provides rapid access to recent research in cryptology. It's hosted by the International Association for Cryptologic Research. The latest articles can be accessed by clicking here.