There is no direct support in Crypto++ for PFX files, so you need to parse them yourself and then feed the extracted private keys and public keys to Crypto++. If Crypto++ is not able to decode the keys, there is probably something wrong with your parsing code. If you believe that you are giving Crypto++ valid keys, and it is not decoding them correctly, then please provide source code for a complete test program plus whatever data is needed for me to reproduce the problem.

----- Original Message ----- From: "asymmetric" <[EMAIL PROTECTED]>
To: "Crypto++ Users" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2007 8:13 PM
Subject: Please help me about pfx files



I use SMP2.5 with cryptopp5.1 when i want to login pfx file with the
password i got an error BERDecodeError();

void BERDecodeNull(BufferedTransformation &in)
{
byte b;
if (!in.Get(b) || b != TAG_NULL)
BERDecodeError(); <== here i get error!
unsigned int length;
if (!BERLengthDecode(in, length) || length != 0)
BERDecodeError();
}

There are two pkcs#5 private keys and 2 X509 certificates in the pfx
file. Exception occurs when matching privatekeys with certificates.

BufPrivateKey length is 648? Is it can be a valid length?


>



--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---

Reply via email to