Re: Problems decrypting PKCS# Private Key , Docs needed

2004-04-23 Thread Dr. Stephen Henson
On Fri, Apr 23, 2004, Carlos Roberto Zainos H wrote:

> 
> 
> If its in DER format then d2i_PKCS8PrivateKey_bio() will handle the
> encrypted form, and d2i_PKCS8_PRIV_KEY_INFO() followed by EVP_PKCS82PKEY()
> for the unencrypted form.
> 
> Steve.
> 
>  
> 
> Thanks a lot dr Henson . just another little question  where are the
> references to d21PKCS8_PRIV_KEY_INFO() and EVP_PKCS82PKEY(), I can't found
> it in evp.h and pem.h  in openssl web page crypto section also could'n
> find it... sorry.
> 
> I'm working in WinXP environement with openssl-w32-version
> 

d2i_PKCS8_PRIV_KEY_INFO isn't documented at present but it behaves just like
any other ASN1 function and takes a PKCS8_PRIV_KEY_INFO argument.

EVP_PKCS82PKEY() is briefly mentioned in openssl.txt: it just takes a
PKCS8_PRIV_KEY_INFO structure and converts it to an EVP_PKEY.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Re: Problems decrypting PKCS# Private Key , Docs needed

2004-04-23 Thread Carlos Roberto Zainos H


If its in DER format then d2i_PKCS8PrivateKey_bio() will handle the encryptedform, and d2i_PKCS8_PRIV_KEY_INFO() followed by EVP_PKCS82PKEY() for theunencrypted form.Steve.
 
Thanks a lot dr Henson . just another little question  where are the references to d21PKCS8_PRIV_KEY_INFO() and EVP_PKCS82PKEY(), I can't found it in evp.h and pem.h  in openssl web page crypto section also could'n find it... sorry.
I'm working in WinXP environement with openssl-w32-version
Thanks in advance
 
ZAINOS Do You Yahoo!?
Yahoo! Net: La mejor conexión a internet y 25MB extra a tu correo por 
$100 al mes.