Security and privacy for in-vehicle networks