Text this: Latency-aware secure transmission in MEC-assisted HSR communication systems