SEcube open-source SDK
Custom VFS wrappers

Wrappers of SEfile APIs for the SQLite DB engine.

These APIs are C wrappers around the C++ APIs of the SEcure Database library. They are called automatically by the custom VFS of SQLite; they are required by SEkey and by the SEcure Database library. They must not be used directly.

uint16_t c_sql_secure_open (char *path, SEFILE_FHANDLE *hFile, int32_t mode, int32_t creation)
 
uint16_t c_sql_secure_write (SEFILE_FHANDLE *hFile, uint8_t *dataIn, uint32_t dataIn_len)
 
uint16_t c_sql_secure_read (SEFILE_FHANDLE *hFile, uint8_t *dataOut, uint32_t dataOut_len, uint32_t *bytesRead)
 
uint16_t c_sql_secure_seek (SEFILE_FHANDLE *hFile, int32_t offset, int32_t *position, uint8_t whence)
 
uint16_t c_sql_secure_truncate (SEFILE_FHANDLE *hFile, uint32_t size)
 
uint16_t c_sql_secure_getfilesize (char *path, uint32_t *position)
 
uint16_t c_secure_sync (SEFILE_FHANDLE *hFile)
 
uint16_t c_secure_close (SEFILE_FHANDLE *hFile)
 

Detailed Description