[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

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?

geremy condra

3/29/2010 2:01:00 PM

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

Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
How to verify a signature using SHA1WithRSA with python

Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te

Il servizio è completamente GRATUITO!