Research Article

SoftME: A Software-Based Memory Protection Approach for TEE System to Resist Physical Attacks

Table 4

Code sample of the memory protection engine.

/ Create a memory protection engine /
cre_tsk (taskid);
/ Memory protection engine implementation /
void engine (void)
……
mbedtls_gcm_crypt_and_tag (mode, , IV, P/C);
……
/ Activate the memory protection engine /
act_tsk (taskid);