HSBC has hired former Barclays group general counsel Bob Hoyt as its chief legal officer.