mirror of
https://github.com/rui314/mold.git
synced 2024-09-19 08:57:39 +03:00
Use SipHash-2-4 instead of SipHash-1-3
Because I wasn't not sure SipHash-1-3 is considered as a secure MAC.
This commit is contained in:
parent
47030cf6ca
commit
08be7ff2d2
@ -35,9 +35,9 @@ namespace mold {
|
||||
v1 ^= v2; \
|
||||
v2 = std::rotl(v2, 32)
|
||||
|
||||
// SipHash-1-3
|
||||
#define COMPRESS do { ROUND; } while (0)
|
||||
#define FINALIZE do { ROUND; ROUND; ROUND; } while (0)
|
||||
// SipHash-2-4
|
||||
#define COMPRESS do { ROUND; ROUND; } while (0)
|
||||
#define FINALIZE do { ROUND; ROUND; ROUND; ROUND; } while (0)
|
||||
|
||||
SipHash::SipHash(u8 *key) {
|
||||
u64 k0 = *(ul64 *)key;
|
||||
|
Loading…
Reference in New Issue
Block a user