Design and Implementation of Secure Embedded Systems Based on Trustzone