Bitcoin ABC 0.30.5
P2P Digital Currency
|
#include <crypto/siphash.h>
Go to the source code of this file.
Macros | |
#define | ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) |
#define | SIPROUND |
Functions | |
uint64_t | SipHashUint256 (uint64_t k0, uint64_t k1, const uint256 &val) |
Optimized SipHash-2-4 implementation for uint256. More... | |
uint64_t | SipHashUint256Extra (uint64_t k0, uint64_t k1, const uint256 &val, uint32_t extra) |
#define ROTL | ( | x, | |
b | |||
) | (uint64_t)(((x) << (b)) | ((x) >> (64 - (b)))) |
Definition at line 7 of file siphash.cpp.
#define SIPROUND |
uint64_t SipHashUint256 | ( | uint64_t | k0, |
uint64_t | k1, | ||
const uint256 & | val | ||
) |
Optimized SipHash-2-4 implementation for uint256.
It is identical to: SipHasher(k0, k1) .Write(val.GetUint64(0)) .Write(val.GetUint64(1)) .Write(val.GetUint64(2)) .Write(val.GetUint64(3)) .Finalize()
Definition at line 99 of file siphash.cpp.
uint64_t SipHashUint256Extra | ( | uint64_t | k0, |
uint64_t | k1, | ||
const uint256 & | val, | ||
uint32_t | extra | ||
) |
Definition at line 138 of file siphash.cpp.