> Hello,
> 
> I am working for HP and trying to use crypto++ for signing and verifying the 
> files. I am trying to read the private key file in PEM format generated by 
> openssl library, but it gives me BER decode error. Could you please throw 
> some light on how to resolve this ?
> 
> Code:
> ===================
>         FileSource privFile(privFilename, true, new HexDecoder); //Here 
> privFileName is the private key file generated by openssl library.
> 
>         RSASS<PSS, SHA>::Signer priv(privFile); //Here it throws 
> "CryptoPP::Exception caught: BER decode error"
> 
>         FileSource f(messageFilename, true, new SignerFilter(GlobalRNG(), 
> priv, new HexEncoder(new FileSink(signatureFilename)
> ===================
> 
> Thanks in advance. Looking forward for your reply.
> 
> Regards
> Mehul

Reply via email to