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

The SEFILE_HEADER struct This data struct is used to define a 31 bytes field inside a sector while taking care of its inner composition. More...

#include <SEfile.h>

Public Attributes

uint8_t nonce_pbkdf2 [SEFILE_NONCE_LEN]
 
SEKEY_HEADER key_header
 
uint8_t nonce_ctr [16]
 
int32_t magic
 
int16_t ver
 
int32_t uid
 
int32_t uid_cnt
 
uint8_t fname_len
 

Detailed Description

The SEFILE_HEADER struct This data struct is used to define a 31 bytes field inside a sector while taking care of its inner composition.

Member Data Documentation

◆ fname_len

uint8_t SEFILE_HEADER::fname_len

1 byte to express how long is the filename.

◆ key_header

SEKEY_HEADER SEFILE_HEADER::key_header

The header with the ID of the key and the algorithm.

◆ magic

int32_t SEFILE_HEADER::magic

4 bytes used to represent file type (not used yet)

◆ nonce_ctr

uint8_t SEFILE_HEADER::nonce_ctr[16]

16 random bytes storing the IV for next sectors

◆ nonce_pbkdf2

uint8_t SEFILE_HEADER::nonce_pbkdf2[SEFILE_NONCE_LEN]

32 random bytes storing the IV for generating a different key

◆ uid

int32_t SEFILE_HEADER::uid

4 bytes not used yet

◆ uid_cnt

int32_t SEFILE_HEADER::uid_cnt

4 bytes not used yet

◆ ver

int16_t SEFILE_HEADER::ver

2 bytes used to represent current filesystem version (not used yet)


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