[pycrypto] Create a Digital Signature (DER Encoded PKCS#1) - SHA1withRSA

Dwayne C. Litzenberger dlitz at dlitz.net
Wed Dec 29 00:41:17 CST 2010


I'll have to look at this when I get back from my vacation.  Maybe file a bug report, or add a comment to an existing report if there is one already?

"Anurag Chourasia" <anurag.chourasia at gmail.com> wrote:

>Hi Thorsten,
>
>Thanks for the information. I believe that the patch that you mentioned
>will
>help me :-)
>
>The patch mentioned in your email was from January 2010 and is in the
>form
>of a diff between files.
>
>Are we supposed to make those modifications manually or is there a
>downloadable somewhere? I am wondering if there is any specific reason
>that
>the change is not a part of the mainstream that a user like me should
>be
>aware of or better if the files are going to be included in the Trunk
>anytime soon :-)
>
>Thanks again for your help today.
>
>Regards,
>Anurag
>
>On Wed, Dec 29, 2010 at 3:39 AM, Thorsten Behrens <sbehrens at gmx.li>
>wrote:
>
>>  >> It wasn't for Home Work :-)
>>
>> Okay :D
>>
>> >
>> > m.digest()
>> > or
>> > m.hexdigest() as the computed hash value.
>>
>> That depends on what you want to do next. m.digest() returns the
>digest
>> in binary form, ready to be used for further manipulation, such as
>> having it signed. m.hexdigest() returns it in a form suitable for
>> inclusion in a text transmission, such as email.
>>
>> > Following this, how can i use Crypto again to Sign the computed
>Hash
>> > Value using the Private Key?
>> >
>> PKCS #1 has not been integrated into trunk yet. There is a patch
>> available, though, here:
>https://bugs.launchpad.net/pycrypto/+bug/502291
>>
>> Thorsten
>>
>> _______________________________________________
>> pycrypto mailing list
>> pycrypto at lists.dlitz.net
>> http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto
>>
>_______________________________________________
>pycrypto mailing list
>pycrypto at lists.dlitz.net
>http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.


More information about the pycrypto mailing list