CX-021431: Enabling Secure and Resilient XFC: A Software and Hardware-Security Co-Design Approach