![]() |
Bitcoin Core 31.99.0
P2P Digital Currency
|
Shared SipHash state (v0..v3) with its round, compression, and finalization primitives. More...
#include <siphash.h>
Public Member Functions | |
| ALWAYS_INLINE | SipHashState (uint64_t k0, uint64_t k1) noexcept |
| Construct a SipHashState initialized with the specified key. More... | |
| ALWAYS_INLINE SipHashState | Copy () const noexcept |
| Construct a copy of this state. More... | |
| ALWAYS_INLINE SipHashState & | Compress1 (uint64_t data) noexcept |
| Mutably compress one block into this state, with 1 SipRound. More... | |
| ALWAYS_INLINE SipHashState & | Compress1Jumbo (const uint256 &data) noexcept |
| Mutably compress one jumbo block into this state, with 1 SipRound. More... | |
| ALWAYS_INLINE SipHashState & | Compress2 (uint64_t data) noexcept |
| Mutably compress one block into this state, with 2 SipRounds. More... | |
| ALWAYS_INLINE uint64_t | Finalize4 () noexcept |
| Mutably finalize this state with 4 SipRounds, and return the resulting hash. More... | |
| ALWAYS_INLINE uint64_t | Finalize3U () noexcept |
| Mutably finalize this state with 3 SipRounds using the unpadded finalizer, and return the resulting hash. More... | |
Private Member Functions | |
| ALWAYS_INLINE | SipHashState (uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3) noexcept |
| Construct a SipHashState with the specified values as state. More... | |
| ALWAYS_INLINE void | SipRound () noexcept |
| Mutably perform one SipRound on this state. More... | |
Private Attributes | |
| uint64_t | m_v0 |
| State variables. More... | |
| uint64_t | m_v1 |
| uint64_t | m_v2 |
| uint64_t | m_v3 |
Static Private Attributes | |
| static constexpr uint64_t | C0 {0x736f6d6570736575} |
| SipHash initialization constants. More... | |
| static constexpr uint64_t | C1 {0x646f72616e646f6d} |
| static constexpr uint64_t | C2 {0x6c7967656e657261} |
| static constexpr uint64_t | C3 {0x7465646279746573} |
| static constexpr uint64_t | FINALIZER {0xFF} |
| SipHash v2 finalizer constant. More... | |
| static constexpr uint64_t | FINALIZER_UNPADDED {0x6465646461706e75} |
| SipHash custom unpadded finalizer constant. More... | |
Shared SipHash state (v0..v3) with its round, compression, and finalization primitives.
Internal building block, only meant to be composed by the hasher classes below.
|
inlineprivatenoexcept |
Construct a SipHashState with the specified values as state.
|
inlineexplicitnoexcept |
Construct a SipHashState initialized with the specified key.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineprivatenoexcept |
|
staticconstexprprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |