I believe all of the formats you have listed use ASN.1 coding. This is often referred to as the binary version of XML by the younger crowd, but it is much more powerful IMHO (also much older). It defines unambiguous ways of encoding things like Integers, and forming collections of them for things like keys.
You can find everything you need to understand this at the RSA lab site where they have documents on the different formats and a starter guide on ASN.1. Then Wei has given you a very powerful/versatile set of tools to work with these formats. Some of them already have code for handling, but the rest shouldn't be very hard to conjure up. In general, once you understand the basic format and how crypto++ offers fundamental tools you should be able to read most of those formats in just a handful of lines of code.
If you want something that already has most of the higher level functions done for you, look at OpenSSL.
73,
Shawn[EMAIL PROTECTED] wrote:
Hi, me again
I would to know which key file and certificates formats are supported by CryptoPP, amoung PKCS12, PKCS7, PEM, CER, and all their little friends. Searching through the ML archive did not really answer me.
Two particular questions : 1. Am I wrong if I consider I can create a PEM file just by Base64-encoding a key generated by RSAES_OAEP_SHA_Decryptor::DEREncode, and then adding correct header and footer ?
2. I am particularly interested in using PKCS12 (.PFX) files ; in case it is not supported, are there available implementations that could be used with CryptoPP ?
Regards,
