Skip to content

Conversation

funny-falcon
Copy link

it fits into i386 registers, do not use multiplication, and consumes more than 2 bytes per cycle
(on Haswell compiled as i386)

  • add check for hashsum equality in chain traversion.

it fits into i386 registers, and consumes more than 2 bytes per cycle
(on Haswell)

+ add check for hashsum equality in chain traversion.
@funny-falcon
Copy link
Author

Probably closes #168

@funny-falcon
Copy link
Author

Note, it doesn't protect from DoS hash-collision.
There is no fast enough (from LuaJIT view of point) platform independent hash function able to protect from.

Simplest platform independent function which I know that can resist "Seed Independent Collision" attack is at least three times slower, and it uses multiplication.

@bungle
Copy link

bungle commented Apr 28, 2016

@funny-falcon Great!

I can confirm that this also fixes #168.

@bungle
Copy link

bungle commented Apr 28, 2016

This is even better with the latest changes to this pull request.

@funny-falcon
Copy link
Author

Obsoleted by #174

@funny-falcon funny-falcon deleted the strhash branch May 4, 2016 05:36
@funny-falcon funny-falcon restored the strhash branch May 4, 2016 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants