[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

How to verify a signature using SHA1WithRSA with python

Gao

3/29/2010 6:43:00 AM

I have a public key, and I want to write a method that verify a string
which is a signature signed by this public key's private key. And is
M2Crypto I can't find algorithm named "SHA1WithRSA" or so . Could anyone
help me?
1 Answer

geremy condra

3/29/2010 2:01:00 PM

0

On Mon, Mar 29, 2010 at 2:42 AM, Gao <gaoxtwarrior@gmail.com> wrote:
> I have a public key, and I want to write a method that verify a string which
> is a signature signed by this public key's private key. And is M2Crypto I
> can't find algorithm named "SHA1WithRSA" or so . Could anyone help me?
> --
> http://mail.python.org/mailman/listinfo/p...
>

In OpenSSL you would simply use the EVP_Verify* functions, I don't
see that in M2Crypto's documentation though. You may have to use
RSA_Verify.

If you're not forced to use M2Crypto, you *may* want to check out evpy,
which is a set of ctypes bindings for openssl's evp interface and a very
easy to use wrapper. It's available at http://gitoriou..., and will
be up for a first release in a few weeks.

Geremy Condra