A secure control framework for self-triggered control