Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
alcinnz
@alcinnz@floss.social  ·  activity timestamp 17 hours ago

Studying Hare's implementation of SipHash the initializers XOR's its operand into its properties with some magic numbers.

Its write method uses a buffer to split its input into 8byte chunks (taking into account a configurable prefix). For each chunk it performs a quad add-rotate-XOR operation upon 4 64bit numbers a configurable number of times, XORing in the written bytes both before & after.

To finish the hash it pads the buffer with 0 & performs another several rounds of that.

1/1Fin today!

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login