Hi everyone.

I am developing Python extension based on OpenSSL.  It will sign data using 
RSA-SHA256 and RSA-SHA1.  I have faced the following problem:  EVP_SignFinal() 
fails if EVP_MD_CTX was initialized  with EVP_sha256().  What is interesting 
that it works perfectly in pure C application or shared library.  I have 
investigated the problem and found that the  function OBJ_nid2obj(NID_sha256) 
returns NULL when it is called from RSA_Sign().  If EVP_MD_CTX was initialized 
with EVP_sha1() all works fine.

I use FreBSD 4.9, gcc-4.1.1, openssl-0.9.8d and Python 2.3.

Does anybody have any ideas what  can cause this problem?

Thanks,
Sergiy Galaburda.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to