Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Classes | Functions
siphash.h File Reference
#include <uint256.h>
#include <cstdint>
Include dependency graph for siphash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CSipHasher
 SipHash-2-4. More...
 

Functions

uint64_t SipHashUint256 (uint64_t k0, uint64_t k1, const uint256 &val)
 Optimized SipHash-2-4 implementation for uint256.
 
uint64_t SipHashUint256Extra (uint64_t k0, uint64_t k1, const uint256 &val, uint32_t extra)
 

Function Documentation

◆ SipHashUint256()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SipHashUint256Extra()

uint64_t SipHashUint256Extra ( uint64_t  k0,
uint64_t  k1,
const uint256 val,
uint32_t  extra 
)

Definition at line 138 of file siphash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: