XOR-based obfuscation over a fixed-size key, applied to byte ranges.
Declared in <util/obfuscation.h>
class Obfuscation;
| Name | Description |
|---|---|
KeyType | Unsigned integer type holding one obfuscation key word. |
| Name | Description |
|---|---|
Obfuscation [constructor] | Constructors |
HexKey | Return the key as a hex string. |
Serialize | Serialize the key as a length-prefixed byte vector. |
Unserialize | Read the key from a length-prefixed byte vector, throwing on a wrong size. |
operator() | Obfuscate (or de-obfuscate) a byte range in place by XORing it with the key. |
operator bool | Test whether the obfuscation is active. |
| Name | Description |
|---|---|
KEY_SIZE | Size of the obfuscation key in bytes. |
| Name | Description |
|---|---|
dbwrapper_private::GetObfuscation | Work around circular dependency, as well as for testing in dbwrapper_tests. Database obfuscation should be considered an implementation detail of the specific database. |