On Wed, Dec 31, 2008 at 17:55, Ventura <[email protected]> wrote: > > How do I setup a DSA::PublicKey object with the data from a binary > file generated > using "gpg --export" ??? >
That file doesn't contain a DER-encoded subjectPublicKeyInfo structure. If you want to parse it, look at RFC 4880 for documentation of the packet format. Here's an example that gets openpgp keys into OpenSSL: http://cypherspace.org/openpgp/pgpdsa/ Obviously, that won't map perfectly to crypto++, but it should get you a jump start on the file format. To make something that's general and robust (that example clearly isn't), I think I'd consider using GNUTLS OpenPGP support to produce a utility that converts the exported public key to a subjectPublicKeyInfo structure, then using that with crypto++. HTH, Geoff --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. -~----------~----~----~----~------~----~------~--~---
