bitcoin-siphash 0.1.18

Although designed for use as a hash function to ensure security, SipHash is fundamentally different from cryptographic hash functions like SHA in that it is only suitable as a message authentication code: a keyed hash function like HMAC. That is, SHA is designed so that it is difficult for an attacker to find two messages X and Y such that SHA(X) = SHA(Y), even though anyone may compute SHA(X). SipHash instead guarantees that, having seen Xi and SipHash(Xi, k), an attacker who does not know the key k cannot find (any information about) k or SipHash(Y, k) for any message Y ∉ {Xi} which they have not seen before. (from wikipedia)
1
2
3
4
5
6
7
8
9
// ---------------- [ File: bitcoin-siphash/src/lib.rs ]
#[macro_use] mod imports; use imports::*;

x!{extra}
x!{finalize}
x!{optimized}
x!{round}
x!{siphash}
x!{write}