[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Pure Lua Crypto (PLC) - new algorithms
- From: Martin <eden_martin_fuhrspam@...>
- Date: Tue, 13 Jun 2017 05:31:52 -0700
On 06/12/2017 05:59 PM, Phil Leblanc wrote:
> On Sun, Jun 11, 2017 at 3:29 AM, Russell Haley <email@example.com> wrote:
>>> On Sun, Jun 11, 2017 at 7:50 AM, Martin <firstname.lastname@example.org> wrote:
>>> Why not add MD5 at least for historically reasons?
> Hi Martin and Russ, I have added an MD5 implementation. I wrote it
> from the RFC 1321 reference in Lua 5.3 instead of reusing code because
> (1) it is fun (your definition of fun may vary)
> (2) Lua 5.3, with its 64-bit integers, bit operators and string
> pack/unpack allows to reduce a bit the gap with C implementations.
> eg. on a i5 2.27 GHz laptop, this md5 hashes a 10-megabyte string in
> approx. 4 seconds. Hurrah for Lua 5.3!!
I'm glad. I prefer to implement things basing on specs, not others code too.
My implementation of MD5 has similar speed, near 2.3MiB/s on i5 3.4GHz.