Fairport
v1.0.38
|
Classes | |
struct | fairport::disk::block_reference< T > |
The combination of the id and physical location of a block or page. More... | |
Modules | |
Header Structures | |
Utility Functions | |
Page Structures | |
Block Structures | |
Heap Structures | |
BTH Structures | |
Property Context Structures | |
Table Context Structures | |
Name to ID Mapping Structures | |
Files | |
file | disk.h |
Disk data structure definitions. | |
Functions | |
void | fairport::disk::permute (void *pdata, ulong cb, bool encrypt) |
Modifies the data block in place, according to the permute method. | |
void | fairport::disk::cyclic (void *pdata, ulong cb, ulong key) |
Modifies the data block in place, according to the cyclic method. |
void fairport::disk::cyclic | ( | void * | pdata, |
ulong | cb, | ||
ulong | key | ||
) | [inline] |
Modifies the data block in place, according to the cyclic method.
This algorithm is called to "encrypt" external data if the crypt_method of the file is set to crypt_method_cyclic
[in,out] | pdata | A pointer to the data to "encrypt". This data is modified in place |
[in] | cb | The size of the block of data |
[in] | key | The key used in the cycle process. Typically this is the block_id of the data being "encrypted". |
void fairport::disk::permute | ( | void * | pdata, |
ulong | cb, | ||
bool | encrypt | ||
) | [inline] |
Modifies the data block in place, according to the permute method.
This algorithm is called to "encrypt" external data if the crypt_method of the file is set to crypt_method_permute
[in,out] | pdata | A pointer to the data to "encrypt". This data is modified in place |
[in] | cb | The size of the block of data |
[in] | encrypt | True if "encrypting", false is unencrypting |