Deeptrust for PCI security architecture  SPEC98T17 rev E
Specification of Deeptrust, the Security Architecture for Cortex-M.

List of functions

int ssbx_memsec_alloc (MEMSEC_HANDLE *h, unsigned int size)
 Allocates memory in the NVSRAM. More...
 
int ssbx_memsec_free (MEMSEC_HANDLE *h)
 Releases allocated secure memory (NVSRAM) More...
 
int ssbx_memsec_read (MEMSEC_HANDLE *h, unsigned int offset, unsigned int size)
 Reads from secure memory (NVSRAM) More...
 
int ssbx_memsec_write (MEMSEC_HANDLE *h, unsigned int offset, unsigned int size)
 Writes to secure memory (NVSRAM) More...
 

Detailed Description

This of module is in charge of securely handling the memory allocation/deallocation in NVSRAM.

Function Documentation

§ ssbx_memsec_alloc()

int ssbx_memsec_alloc ( MEMSEC_HANDLE h,
unsigned int  size 
)

Allocates memory in the NVSRAM.

The battery backed NVSRAM holds automatically encrypted/decrypted data. This memory is wiped in case of tamper attack on the system.

This allocator guarantees that data allocated by one box are visible only to this box.

Parameters
[in]hpointer to the pointer to the memory handle
[in]sizesize to allocate
Returns
See error codes

§ ssbx_memsec_free()

int ssbx_memsec_free ( MEMSEC_HANDLE h)

Releases allocated secure memory (NVSRAM)

Parameters
hpointer to the memory handle
Returns
See error codes

§ ssbx_memsec_read()

int ssbx_memsec_read ( MEMSEC_HANDLE h,
unsigned int  offset,
unsigned int  size 
)

Reads from secure memory (NVSRAM)

Parameters
hpointer to the memory handle
[in]offsetThe offset
[in]sizesize to be read
Returns
See error codes

§ ssbx_memsec_write()

int ssbx_memsec_write ( MEMSEC_HANDLE h,
unsigned int  offset,
unsigned int  size 
)

Writes to secure memory (NVSRAM)

Parameters
hpointer to the memory handle
[in]offsetThe offset
[in]sizeThe size
Returns
See error codes