![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
#include <obfuscation.h>
Public Types | |
| using | KeyType = uint64_t |
Public Member Functions | |
| Obfuscation () | |
| Obfuscation (std::span< const std::byte, KEY_SIZE > key_bytes) | |
| operator bool () const | |
| void | operator() (std::span< std::byte > target, size_t key_offset=0) const |
| template<typename Stream > | |
| void | Serialize (Stream &s) const |
| template<typename Stream > | |
| void | Unserialize (Stream &s) |
| std::string | HexKey () const |
Static Public Attributes | |
| static constexpr size_t | KEY_SIZE {sizeof(KeyType)} |
Private Member Functions | |
| void | SetRotations (KeyType key) |
Static Private Member Functions | |
| static KeyType | ToKey (std::span< const std::byte, KEY_SIZE > key_span) |
| static void | XorWord (std::span< std::byte > target, KeyType key) |
Private Attributes | |
| std::array< KeyType, KEY_SIZE > | m_rotations |
Definition at line 19 of file obfuscation.h.
Definition at line 22 of file obfuscation.h.
|
inline |
|
inlineexplicit |
|
inline |
Definition at line 79 of file obfuscation.h.
|
inline |
Definition at line 31 of file obfuscation.h.
Definition at line 62 of file obfuscation.h.
Definition at line 88 of file obfuscation.h.
|
inlinestaticprivate |
Definition at line 97 of file obfuscation.h.
Definition at line 104 of file obfuscation.h.
Definition at line 23 of file obfuscation.h.
Definition at line 86 of file obfuscation.h.