A trusted execution environment is a secure area of a main processor. It helps the code and data loaded inside it be protected with respect to confidentiality and integrity.