SEcube open-source SDK
Public Attributes | List of all members
SEFILE_SQL_SECTOR Struct Reference

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]
 

Detailed Description

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.

Member Data Documentation

◆ data

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.

◆ header

SEFILE_HEADER SEFILE_SQL_SECTOR::header

◆ len

uint16_t SEFILE_SQL_SECTOR::len

How many bytes are actually stored in this sector.

◆ signature

uint8_t SEFILE_SQL_SECTOR::signature[32]

Authenticated digest generated by the device


The documentation for this struct was generated from the following files: