[IronPython] hashlib for IronPython

M. David Peterson xmlhacker at gmail.com
Sun Oct 15 09:27:40 CEST 2006


Hey Seo,

I've run into a problem with the usage of the the boto (home:
http://code.google.com/p/boto/, repo: http://boto.googlecode.com/svn/trunk/)
project code base and its usage of the hmac module,

>>> import boto
> >>> conn = boto.connect_s3()
> >>> bucket = conn.create_bucket('foobarbucketfoo')
> Traceback (most recent call last):
>   File , line 0, in <stdin>##108
>   File C:\Python24\Lib\site-packages\boto\connection.py, line 282, in
> create_bucket
>   File connection, line unknown, in make_request
>   File C:\Python24\Lib\site-packages\boto\connection.py, line 167, in
> make_request
>   File C:\Python24\Lib\site-packages\boto\connection.py, line 184, in
> add_aws_auth_header
>   File C:\Python24\Lib\site-packages\boto\connection.py, line 106, in
> encode
>   File C:\Python24\Lib\hmac.py, line 107, in new
>   File C:\Python24\Lib\hmac.py, line 44, in __init__
> AttributeError: 'module' object has no attribute 'digest_size'
> >>>


It seems to me that at one point this was something you had fixed in regards
to the MD5 module, though this was a while back and can't be certain.  Any
ideas in regards to the best way to work around this issue?



On 10/11/06, Sanghyeon Seo <sanxiyn at gmail.com> wrote:
>
> > Mono.Security.dll implements the SHA224 algorithm. This assembly is
> > always included with Mono (as many security tools depends on it). The
> > same assembly/binary can also be used on the MS runtime without any
> > problems.
>
> This is now used when available. Here's the commit:
> http://svn.sourceforge.net/viewvc/fepy?view=rev&revision=206
>
> --
> Seo Sanghyeon
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>



-- 
/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20061015/32a296a1/attachment.html>


More information about the Ironpython-users mailing list