Re: Help wanted with md2 hash algorithm

2006-01-11 Thread wjb131
Tom Anderson wrote: On Sun, 8 Jan 2006, Tom Anderson wrote: On Fri, 6 Jan 2006 [EMAIL PROTECTED] wrote: below you find my simple python version of MD2 algorithm as described in RFC1319 (http://rfc1319.x42.com/MD2). It produces correct results for strings shorter than 16 Bytes and

Re: Help wanted with md2 hash algorithm

2006-01-10 Thread wjb131
Paul Rubin wrote: [EMAIL PROTECTED] writes: I thought I had build a proper implementation in Python. The error you mention can be avoided by studying the C implementation in RFC 1319. BUT: Some of the test vectors failed. That's my problem ;-( And therefore I asked for help. You might

Re: Help wanted with md2 hash algorithm

2006-01-10 Thread Tom Anderson
On Sun, 8 Jan 2006, Tom Anderson wrote: On Fri, 6 Jan 2006 [EMAIL PROTECTED] wrote: below you find my simple python version of MD2 algorithm as described in RFC1319 (http://rfc1319.x42.com/MD2). It produces correct results for strings shorter than 16 Bytes and wrong results for longer

Re: Help wanted with md2 hash algorithm

2006-01-09 Thread wjb131
Paul Rubin wrote: [EMAIL PROTECTED] writes: below you find my simple python version of MD2 algorithm as described in RFC1319 (http://rfc1319.x42.com/MD2). It produces correct results for strings shorter than 16 Bytes and wrong results for longer strings. Why do you want to use MD2?

Re: Help wanted with md2 hash algorithm

2006-01-09 Thread Paul Rubin
[EMAIL PROTECTED] writes: I want to understand it, and -- therefor ;-) -- I want to implement it in pure Pyhton. OK. It should be pretty easy to implement. You should find the official rfc at ietf.org. I remember there was some minor erratum in the original version that may or may not have

Re: Help wanted with md2 hash algorithm

2006-01-09 Thread wjb131
Paul Rubin wrote: [EMAIL PROTECTED] writes: I want to understand it, and -- therefor ;-) -- I want to implement it in pure Pyhton. OK. It should be pretty easy to implement. You should find the official rfc at ietf.org. I remember there was some minor erratum in the original version

Re: Help wanted with md2 hash algorithm

2006-01-09 Thread Paul Rubin
[EMAIL PROTECTED] writes: I thought I had build a proper implementation in Python. The error you mention can be avoided by studying the C implementation in RFC 1319. BUT: Some of the test vectors failed. That's my problem ;-( And therefore I asked for help. You might check PyCrypt against the

Re: Help wanted with md2 hash algorithm

2006-01-09 Thread wjb131
Paul Rubin wrote: [EMAIL PROTECTED] writes: I thought I had build a proper implementation in Python. The error you mention can be avoided by studying the C implementation in RFC 1319. BUT: Some of the test vectors failed. That's my problem ;-( And therefore I asked for help. You might

Re: Help wanted with md2 hash algorithm

2006-01-09 Thread Paul Rubin
[EMAIL PROTECTED] writes: Already done before my first posting. But the problem was there. I studied the C sources of MD2 of that package, too. But all test cases with more than 16 bytes failed. Hmm, did the test cases work for the RFC 1319 reference code? What about OpenSSL? I thought when

Re: Help wanted with md2 hash algorithm

2006-01-09 Thread Paul Rubin
Paul Rubin http://[EMAIL PROTECTED] writes: Hmm, did the test cases work for the RFC 1319 reference code? What about OpenSSL? I just checked OpenSSL and all the test values it computes match the RFC. -- http://mail.python.org/mailman/listinfo/python-list

Help wanted with md2 hash algorithm

2006-01-07 Thread wjb131
hi all, below you find my simple python version of MD2 algorithm as described in RFC1319 (http://rfc1319.x42.com/MD2). It produces correct results for strings shorter than 16 Bytes and wrong results for longer strings. I can't find what's wrong. Can anybody help? Regards Wolfgang

Re: Help wanted with md2 hash algorithm

2006-01-07 Thread Tom Anderson
On Fri, 6 Jan 2006 [EMAIL PROTECTED] wrote: below you find my simple python version of MD2 algorithm as described in RFC1319 (http://rfc1319.x42.com/MD2). It produces correct results for strings shorter than 16 Bytes and wrong results for longer strings. I can't find what's wrong. Can

Re: Help wanted with md2 hash algorithm

2006-01-07 Thread Paul Rubin
[EMAIL PROTECTED] writes: below you find my simple python version of MD2 algorithm as described in RFC1319 (http://rfc1319.x42.com/MD2). It produces correct results for strings shorter than 16 Bytes and wrong results for longer strings. Why do you want to use MD2? It's very slow and it's