Marco Donati wrote:
> 
> I wrote the following simple code to read a private key that's inside a
> PKCS12 object:
> 
[stuff deleted]
> 
> the PKCS12_parse always fail reporting
> PKCS12_F_PKCS12_PARSE,PKCS12_R_MAC_VERIFY_FAILURE.
> 
> Stepping inside it I've seen that PKCS12_verify_mac fails reporting
> PKCS12_F_VERIFY_MAC,PKCS12_R_MAC_GENERATION_ERROR,
> 
> Stepping inside PKCS12_verify_mac I've seen that PKCS12_gen_mac fails
> reporting PKCS12_F_PKCS12_GEN_MAC,PKCS12_R_UNKNOWN_DIGEST_ALGORITHM.
> 
> Finally, stepping inside PKCS12_gen_mac I've seen that (md_type =
> EVP_get_digestbyobj) fails reporting
> PKCS12_F_PKCS12_GEN_MAC,PKCS12_R_UNKNOWN_DIGEST_ALGORITHM.
> 
> What is happening?
> 

You haven't read the FAQ:

http://www.openssl.org/support/faq.html#13

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to