Securing car2X applications with effective hardware-software co-design for vehicular on-board networks