The embodiment of the invention provides a trusted execution environment
system and method, an electronic device and a storage medium, the
system comprises a processor, an enclave protection unit and a memory, the enclave protection unit is connected with the processor and the memory through a data
bus, and the processor is used for storing the enclave protection unit in a secure mode. In response to a request message for creating a user enclave sent by the
user equipment, creating a corresponding user enclave in the memory, and sending an access address of the user enclave to the
user equipment and the enclave protection unit, the user enclave being used for storing encrypted user sensitive data; and the enclave protection unit is used for receiving an access request message sent by the
user equipment to the user enclave, and accessing the user enclave according to an access address in the access request message, so that the problems that the TEE capabilities of CPUs of different
system architectures are not uniform, a uniform security communication mechanism is lacked and only a solution of
software TEE is supported in related technologies can be solved.