SEcube open-source SDK
|
The SEFILE_SQL_SECTOR struct This data struct is the actual sector organization for encrypted SQLite databases. The total size should ALWAYS be equal to SEFILE_SQL_SECTOR_SIZE. The first sector is used to hold ONLY the header. Thanks to the union data type, the developer can simply declare a sector and then choose if it is the header sector or not. This sector is similar to the original one but with higher overhead. More...
#include <SEcureDB.h>
Public Attributes | |
union { | |
SEFILE_HEADER header | |
uint8_t data [SEFILE_SQL_LOGIC_DATA] | |
}; | |
uint8_t | padding [SEFILE_SQL_PADDING_LEN] |
uint16_t | len |
uint8_t | signature [32] |
uint8_t | overhead [SEFILE_SQL_OVERHEAD_LEN] |
The SEFILE_SQL_SECTOR struct This data struct is the actual sector organization for encrypted SQLite databases. The total size should ALWAYS be equal to SEFILE_SQL_SECTOR_SIZE. The first sector is used to hold ONLY the header. Thanks to the union data type, the developer can simply declare a sector and then choose if it is the header sector or not. This sector is similar to the original one but with higher overhead.
uint8_t SEFILE_SQL_SECTOR::data[SEFILE_SQL_LOGIC_DATA] |
In here it will be written the actual data. Since it is inside a union data type, the filename will be written from 32nd byte.
SEFILE_HEADER SEFILE_SQL_SECTOR::header |
See SEFILE_HEADER .
uint16_t SEFILE_SQL_SECTOR::len |
How many bytes are actually stored in this sector.
uint8_t SEFILE_SQL_SECTOR::signature[32] |
Authenticated digest generated by the device