SEFile
Userspace drivers to manage a secure filesystem
 All Data Structures Files Functions Variables Typedefs Macros Groups
Data Fields
SEFILE_SECTOR Struct Reference

The SEFILE_SECTOR struct This data struct is the actual sector organization. The total size should ALWAYS be equal to SEFILE_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. More...

Data Fields

union {
   SEFILE_HEADER   header
 
   uint8_t   data [SEFILE_LOGIC_DATA]
 
}; 
 
uint16_t len
 
uint8_t signature [32]
 

Detailed Description

The SEFILE_SECTOR struct This data struct is the actual sector organization. The total size should ALWAYS be equal to SEFILE_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.

Field Documentation

uint8_t SEFILE_SECTOR::data[SEFILE_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_SECTOR::header
uint16_t SEFILE_SECTOR::len

How many bytes are actually stored in this sector.

uint8_t SEFILE_SECTOR::signature[32]

Authenticated digest generated by the device


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